> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Phaseo Gateway base URL: https://api.phaseo.app/v1. Send `Authorization: Bearer $PHASEO_API_KEY` with every request.
> Model IDs look like `provider/model`, for example `openai/gpt-6-astra`. Do not guess IDs: list them with `GET /v1/models` or check https://phaseo.app/models. `phaseo/free` routes to an available free model and needs no wallet balance.
> For new text integrations prefer `POST /v1/responses`. `POST /v1/chat/completions` (OpenAI format) and `POST /v1/messages` (Anthropic format) suit existing code.
> The full API contract is https://phaseo.app/docs/openapi/v1/openapi.yaml. Official SDKs: `@phaseo/sdk` (TypeScript) and `phaseo` (Python), plus Go, C#, PHP, Ruby and Rust.
> Search these docs over MCP at https://phaseo.app/docs/mcp, and install Phaseo skills with `npx skills add https://phaseo.app/docs`. If a page is wrong or out of date, report it with the MCP `submit_feedback` tool.
> Manage Phaseo accounts with the `phaseo` CLI (`npm install -g @phaseo/cli`, then `phaseo login` or `phaseo login --device-code`), the `/v1` Management API or the MCP server at `https://mcp.phaseo.app/mcp?access=manage`. Do not send users to the dashboard for account tasks. A person is still needed for sign-up, approving a sign-in, paying the first top-up on the checkout link that `phaseo credits add` returns when no card is saved, confirming each saved-card top-up from the emailed link, and account security (password, MFA, passkeys). Create API keys with `phaseo keys create --name <name> --json`; never guess one. Credit top-ups need `phaseo login --scopes billing:write` first. Task map: https://phaseo.app/docs/v1/developers/manage-from-an-agent.md.

# माइग्रेशन गाइड

> प्लेटफ़ॉर्म बदलने या किसी ख़ास मॉडल रिलीज़ को अपनाने के लिए गाइड।

आप जो बदल रहे हैं, उसके लिए गाइड चुनें: वह प्लेटफ़ॉर्म जिसे आपका ऐप कॉल करता है (नीचे), या वह मॉडल जिसे वह उपयोग करता है ([मॉडल माइग्रेशन](https://phaseo.app/docs/hi/v1/model-migrations.md))। अगर आप दोनों बदल रहे हैं, तो पहले प्लेटफ़ॉर्म बदलें और नया पथ सत्यापित होने तक मॉडल वही रखें।

अपने हिसाब से बनी चेकलिस्ट के लिए [Migration Assistant](https://phaseo.app/migrate) उपयोग करें।

## प्लेटफ़ॉर्म माइग्रेशन

हर प्लेटफ़ॉर्म गाइड एक ही क्रम में चलती है: बेस URL और कुंजी बदलें, मॉडल ID मैप करें, प्लेटफ़ॉर्म की सुविधाएं मैप करें, फिर टेस्ट करें और रोलआउट करें, जबकि रोलबैक सिर्फ़ बेस URL और कुंजी बदलने तक सीमित रहे।

| आप कॉल करते हैं | कोड में संकेत | गाइड |
| - | - | - |
| सीधे OpenAI | `api.openai.com`, `OPENAI_API_KEY`, `AzureOpenAI` | [OpenAI SDK](https://phaseo.app/docs/hi/v1/migration-guides/from-openai.md) |
| सीधे Anthropic | `api.anthropic.com`, `ANTHROPIC_API_KEY`, `@anthropic-ai/sdk` | [Anthropic SDK](https://phaseo.app/docs/hi/v1/migration-guides/from-anthropic.md) |
| OpenRouter | `openrouter.ai`, `OPENROUTER_API_KEY`, `sk-or-v1` कुंजियां | [OpenRouter](https://phaseo.app/docs/hi/v1/migration-guides/from-openrouter.md) |
| Vercel AI Gateway | `ai-gateway.vercel.sh`, `@ai-sdk/gateway`, AI SDK कॉल में सादे स्ट्रिंग मॉडल | [Vercel AI Gateway](https://phaseo.app/docs/hi/v1/migration-guides/from-vercel.md) |
| LLM Gateway | `api.llmgateway.io`, `LLM_GATEWAY_API_KEY` | [LLM Gateway](https://phaseo.app/docs/hi/v1/migration-guides/from-llmgateway.md) |
| कोई LiteLLM प्रॉक्सी | `model_list` वाली `config.yaml`, `LITELLM_*` वेरिएबल, पोर्ट 4000 | [LiteLLM](https://phaseo.app/docs/hi/v1/migration-guides/from-litellm.md) |
| Cloudflare AI Gateway | `gateway.ai.cloudflare.com`, `cf-aig-*` हेडर | [Cloudflare AI Gateway](https://phaseo.app/docs/hi/v1/migration-guides/from-cloudflare.md) |
| Helicone | `*.helicone.ai`, `Helicone-Auth` | [Helicone](https://phaseo.app/docs/hi/v1/migration-guides/from-helicone.md) |

रोलआउट की योजना बनाने और जांचने के लिए [माइग्रेशन सुविधा चेकलिस्ट](https://phaseo.app/docs/hi/v1/migration-guides/feature-parity-matrix.md) उपयोग करें।

## कोडिंग एजेंट के साथ माइग्रेट करें

किसी कोडिंग एजेंट से माइग्रेशन की योजना बनाने और उसे आपके साथ पूरा करने को कहें।

Migrate this project's AI requests to Phaseo Gateway.

&#x20; 1\. Install the Phaseo skills: npx skills add [https://phaseo.app/docs](https://phaseo.app/docs)
&#x20;  Use phaseo-migration, which has a guide for each source platform (and openrouter-to-phaseo-migration for a detailed OpenRouter move).
&#x20; 2\. Find every place the project calls its current provider or gateway (OpenAI, Anthropic, OpenRouter, Vercel AI Gateway, LiteLLM or another), including environment variables, SDK clients, base URLs and model IDs.
&#x20; 3\. Read the matching guide at [https://phaseo.app/docs/hi/v1/migration-guides](https://phaseo.app/docs/hi/v1/migration-guides.md) and map each call to its Phaseo equivalent at [https://api.phaseo.app/v1](https://api.phaseo.app/v1) with a server-side PHASEO\_API\_KEY.
&#x20; 4\. Check every model ID against data\[].id from GET /v1/models?format=openai. Do not assume IDs carry over unchanged.
&#x20; 5\. List the changes and a rollback plan before editing. After editing, verify one normal request and one streaming request if the project streams.
&#x20; 6\. Never print or commit API keys, and do not switch production traffic without my approval.

## मॉडल माइग्रेशन

जब इंटीग्रेशन वही रहे लेकिन मॉडल बदले, तब [मॉडल माइग्रेशन गाइड](https://phaseo.app/docs/hi/v1/model-migrations.md) उपयोग करें। हर गाइड अनुरोध पैरामीटर में बदलाव, प्रॉम्प्ट और रीज़निंग व्यवहार में बदलाव, संरचित आउटपुट और टूल कॉलिंग के अंतर, और फ़ॉलबैक के साथ रोलआउट का तरीका बताती है।

किसी भी तरह के माइग्रेशन में, आउटपुट गुणवत्ता की तुलना से पहले अनुरोध पैरामीटर और एंडपॉइंट व्यवहार जांचें, और लाइव ट्रैफ़िक बदलने से पहले प्रोडक्शन जैसे मूल्यांकन चलाएं।


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.