> ## 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.

# Gateway API का अवलोकन

> Phaseo Gateway का बेस URL, प्रमाणीकरण और एंडपॉइंट परिवार।

हर अनुरोध `https://api.phaseo.app/v1` पर भेजें, और अपनी कुंजी `Authorization: Bearer` हेडर में दें। नीचे अपने काम का एंडपॉइंट खोजें, फिर उसका संदर्भ पेज खोलें।

## सही एंडपॉइंट खोजें

| अगर आप यह करना चाहते हैं | यहां से शुरू करें |
| - | - |
| अपना पहला अनुरोध भेजें | [क्विकस्टार्ट](https://phaseo.app/docs/hi/v1/quickstart.md) |
| टेक्स्ट बनाएं या टूल इस्तेमाल करें | [`POST /responses`](./endpoint/responses) |
| टाइप किए गए निर्णय लें | [`POST /decisions`](./endpoint/decisions) |
| मौजूदा OpenAI-संगत इंटीग्रेशन बनाए रखें | [`POST /chat/completions`](./endpoint/chat-completions) |
| मॉडल और प्रदाता देखें | [`GET /models`](./endpoint/models) और [`GET /providers`](./endpoint/providers) |
| संगीत बनाएं या फ़ाइलें प्रबंधित करें | [`POST /music/generate`](./endpoint/music-generate) और [`POST /files`](./endpoint/files) |
| वीडियो बनाएं (अल्फा) | [`POST /videos`](./endpoint/video-create) |
| बैच सबमिट करें या परिणाम डाउनलोड करें (बीटा) | [`POST /batches`](./endpoint/batches-create) और [`GET /batches/{batch_id}/results`](./endpoint/batches-results) |

## बेस URL

```http theme={null}
https://api.phaseo.app/v1
```

इस संदर्भ में हर एंडपॉइंट पथ इसी बेस URL के सापेक्ष है।

## OpenAPI

OpenAPI फ़ाइल को Postman, Hoppscotch या किसी SDK जनरेटर में इम्पोर्ट करें।

> [card] [Phaseo Gateway OpenAPI](https://github.com/phaseoteam/Phaseo/blob/main/apps/docs/openapi/v1/openapi.yaml)
>
> स्पेसिफ़िकेशन फ़ाइल देखें

दस्तावेज़ और SDK यही स्पेसिफ़िकेशन इस्तेमाल करते हैं। जो एंडपॉइंट आम तौर पर उपलब्ध नहीं हैं, उन पर **अल्फा** या **बीटा** बैज होता है, और कुछ को पहले आपके वर्कस्पेस के लिए चालू करना पड़ता है। [फ़ीचर की परिपक्वता](https://phaseo.app/docs/hi/v1/developers/feature-maturity.md) में चरण समझाए गए हैं और हर फ़ीचर की पहुँच दी गई है।

## प्रमाणीकरण

| क्रेडेंशियल | फ़ॉर्मैट | किन्हें कॉल करता है |
| - | - | - |
| [Gateway API कुंजी](https://phaseo.app/docs/hi/v1/developers/authentication.md) | `phaseo_v1_sk_<kid>_<secret>` | इन्फ़रेंस एंडपॉइंट |
| [मैनेजमेंट API कुंजी](https://phaseo.app/docs/hi/v1/developers/management-api-keys.md) | `phaseo_v1_mk_<kid>_<secret>` | प्रशासन एंडपॉइंट, कुंजी की अनुमतियों तक सीमित |

```http theme={null}
Authorization: Bearer phaseo_v1_sk_<kid>_<secret>
```

प्रमाणीकरण विफल होने पर API `401` लौटाता है।

## API संसाधन

| संसाधन | यह क्या करता है |
| - | - |
| इन्फ़रेंस | टेक्स्ट, इमेज, ऑडियो और एम्बेडिंग बनाएं; निर्णय लें, रीरैंक करें, मॉडरेट करें या सामग्री पार्स करें। [Responses](https://phaseo.app/docs/hi/v1/api-reference/endpoint/responses.md) या [निर्णय](https://phaseo.app/docs/hi/v1/api-reference/endpoint/decisions.md) से शुरू करें। |
| एसिंक जॉब और फ़ाइलें | [वीडियो](https://phaseo.app/docs/hi/v1/api-reference/endpoint/video-create.md) या [बैच](https://phaseo.app/docs/hi/v1/api-reference/endpoint/batches-create.md) जॉब सबमिट करें, फ़ाइलें ट्रांसफ़र करें और वेबहुक कॉन्फ़िगर करें। |
| मॉडल और कीमतें | [मॉडल](https://phaseo.app/docs/hi/v1/api-reference/endpoint/models.md), प्रदाता ऑफ़र और [अनुमानित लागत](https://phaseo.app/docs/hi/v1/api-reference/endpoint/pricing-calculate.md) खोजें। |
| रूटिंग और नीतियां | प्रीसेट, प्रदाता क्रेडेंशियल, निजी मॉडल और [गार्डरेल](https://phaseo.app/docs/hi/v1/api-reference/endpoint/guardrails.md) कॉन्फ़िगर करें। |
| उपयोग और निगरानी | [लॉग](https://phaseo.app/docs/hi/v1/api-reference/endpoint/logs-list.md), गतिविधि, एनालिटिक्स, मूल्यांकन और सेवा की सेहत देखें। |
| वर्कस्पेस प्रबंधन | [वर्कस्पेस](https://phaseo.app/docs/hi/v1/api-reference/endpoint/workspaces-list.md), कुंजियां, बजट, पहचान और इंटीग्रेशन प्रबंधित करें। |

## बिलिंग और अनुरोध सीमाएँ

सशुल्क अनुरोधों को चलने से पहले क्रेडिट जांच पास करने के लिए वॉलेट में पर्याप्त बैलेंस चाहिए। जिन मॉडलों का ID `:free` पर खत्म होता है, उन्हें जमा किए गए क्रेडिट की ज़रूरत नहीं होती। अनुरोधों को कोई प्रदाता, या वर्कस्पेस और कुंजी की सीमाएं थ्रॉटल कर सकती हैं; [अनुरोध सीमाएँ](https://phaseo.app/docs/hi/v1/api-reference/limits.md) देखें।


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