Skip to main content
Use this guide to move an existing OpenAI SDK integration to Phaseo without rewriting the rest of your application. Start with the base URL and API key, keep the request itself unchanged, then verify each model and endpoint before shifting production traffic.

What changes

1

Create a Phaseo API key

Create a key in Gateway Keys, then add it to every environment that runs your application.
2

Point the client at Phaseo

Keep the OpenAI SDK and change only its credentials and base URL first.
3

Verify model IDs and endpoint coverage

List the models available through Phaseo instead of assuming every previous alias resolves unchanged.
Check every production workflow you rely on, including streaming, tools, structured outputs, images, audio, files, or batches. Use the API Reference to confirm the matching endpoint.
4

Test and roll out

Run the same representative prompts against your old and new configurations. Compare output shape, latency, token usage, errors, and cost before moving traffic gradually.

Migration checklist

  • The Phaseo key is configured in development, staging, and production.
  • The client base URL is https://api.phaseo.app/v1.
  • Every production model ID appears in GET /v1/models.
  • Non-streaming and streaming requests pass in staging.
  • Tool calls and structured outputs pass if your application uses them.
  • Rollback remains a configuration-only key and endpoint change.

Next steps

Last modified on July 26, 2026