Skip to main content
Use this guide when your app already calls OpenAI from TypeScript, JavaScript, or Python. Change only the API key, base URL, and model id.

TypeScript

Python

Chat Completions

Older libraries may still call Chat Completions:

Notes

  • Use Phaseo model ids, including provider prefixes such as openai/, anthropic/, or google/.
  • Server tools use Phaseo tool names such as phaseo:web_search.
  • For Anthropic-native clients, use the Anthropic SDK guide instead.
Last modified on July 26, 2026