Use your own SDK
Change the base URL and the model id, and a tool built for another provider's API runs any Platform model. OpenAI, ElevenLabs, Replicate, fal, Gemini, xAI, Runway, Luma, Deepgram, Cartesia and more.
Keep your provider’s request format. Set the base URL to Platform, use your Platform API key,
and pass a model ID. The same billing, limits, and logs apply as for POST /v1/request.
Choose a model in the Playground to see the formats available for it. Replicate and fal offer general-purpose formats. Maker-specific endpoints take the models and inputs shown in their guides.
Every base URL starts with:
https://platform-api.invideo.ioAdd the path below.
| You use | Path | Page |
|---|---|---|
| OpenAI SDK: images, speech to text, text to speech | /v1 | OpenAI media |
| ElevenLabs SDK | /elevenlabs | ElevenLabs |
| Replicate clients | /replicate | Replicate |
| fal queue API | /fal | fal |
| Google GenAI SDK: Nano Banana, Gemini speech, Veo, Imagen | no path | Gemini media |
| xAI video | /xai | xAI |
| Runway SDK | /runway | Runway |
| Luma SDK | /luma | Luma |
| Deepgram and Cartesia | /deepgram, /cartesia | Deepgram and Cartesia |
| BFL, Kling, MiniMax, Ideogram, BytePlus, DashScope, Meshy | /<maker> | Makers' own APIs |
More native media formats
Use the paths below with your Platform key. The OpenAPI description lists the full submit and poll paths. OpenAPI
| Provider | Submit or result path | Settled USD field |
|---|---|---|
| OpenAI media | /v1/images/*, /v1/audio/* | usage.cost in JSON, header on byte or text responses |
| Gemini media | /v1beta/models/{model}:predict, :generateContent, :predictLongRunning, and operations | usageMetadata.cost_usd |
| Replicate | /replicate/v1/predictions | metrics.cost_usd |
| fal | /fal/{model} and its queue status or result | usage.cost |
| xAI and Recraft images | /xai/v1/images/*, /recraft/v1/images/generations | usage.cost |
| xAI videos | /xai/v1/videos/generations, /xai/v1/videos/{id} | usage.cost on result |
| Runway, Luma, BFL, Ideogram, legacy Kling, DashScope, Meshy | Maker submit and result endpoints | metadata.invideo_cost_usd |
| Kling 3 Omni | /kling/omni-video/kling-3.0-omni, /kling/tasks?task_ids=… | data[].usage.invideo_cost_usd on terminal tasks |
| Firefly, Phota, Reve, Topaz Bloom | /adobe/v3, /phota/v2/phota, /reve/v1/image, /topaz/image/v1 | metadata.invideo_cost_usd |
| Magnific | /freepik/v1/ai | data.cost_usd |
| Higgsfield and Pruna | /higgsfield/v1/job-sets/{id}, /pruna/v1/predictions/status/{id} | metadata.invideo_cost_usd |
| Runware | /runware/v1 with one task per JSON array, getResponse to poll | usage.cost for images, data[].usage.invideo_cost_usd for video |
| BytePlus ModelArk | /byteplus/api/v3/images/generations, /byteplus/api/v3/contents/generations/tasks | usage.cost |
| BytePlus Seed Audio and Seed TTS | /byteplus/api/v3/tts, /byteplus/api/v3/contents/generations | usage.invideo_cost_usd |
| BytePlus Vision | /byteplusvision with submit or result action | metadata.invideo_cost_usd for images, usage.invideo_cost_usd for video |
| ElevenLabs, Deepgram and Cartesia | Speech, transcription and stem separation | metadata.invideo_cost_usd in JSON, header on audio or ZIP |
| Fish Audio, Sarvam, MiniMax and Cleanvoice | /fishaudio/v1, /sarvam/text-to-speech, /minimax/v1, /cleanvoice/v2/edits | metadata.invideo_cost_usd in JSON, header on audio |
| Mureka, LTX, HeyGen and Tencent Wand | /mureka/v1, /ltx/v2, /heygen/v3, /tencent/v1/wand | usage.invideo_cost_usd on result |
| Bach, Beeble and Tencent MPS | /bach/api/vdr/video/v2, /beeble/v1/switchx/generations, /tencentmps | metadata.invideo_cost_usd on result |
| PixVerse | /pixverse/openapi/v2/video/{action}/generate, /pixverse/openapi/v2/video/result/{id} | Resp.usage.invideo_cost_usd |
Completed requests carry the exact charged USD as a decimal string in x-invideo-cost-usd when the amount is known before response headers. Pending tasks gain their charge on the terminal result. This amount is the Platform charge to your workspace. The accompanying invideo_cost object in the same usage or metadata section lists the total and each billed item. In the invideo API, read cost.total_usd and cost.lines on the completed request. The final usage event of a chat stream carries its cost object. For audio or other byte responses, read the JSON object from the x-invideo-cost-breakdown header.
The same rules everywhere
- Your key. Send it the way that tool does:
Authorization: Bearer,Authorization: Key(fal),Authorization: Token(Replicate, Deepgram),xi-api-key(ElevenLabs),x-key(BFL),x-api-key,x-goog-api-key. A key in the URL is refused. - Fields a provider has no slot for. Put the model's own inputs in
extra(extra_bodyfor the OpenAI SDK). They are checked against the model's inputs, likeinputinPOST /v1/request. - What we refuse. A field that would change the price or the result and that the model has no input
for is a 400 in that provider's error shape, naming the field. Webhooks,
nabove 1 and cancelling a run are not supported yet. - Waiting. Calls that return the result at once (OpenAI audio, ElevenLabs, Deepgram, Cartesia, Ideogram, ...) answer when the run ends, up to the model's longest run and at most 30 minutes. Calls that are asynchronous in that provider's API (Replicate, fal, Runway, Luma, Veo, ...) stay asynchronous.
- Unsupported parameters. The API names parameters it cannot map to the selected model. For zero data retention, use a supported provider format.
- Results. Asset links and request IDs are issued by Platform. Media failures have no charge. If an LLM request uses tokens before a content or output-limit stop, the response reports the charge for those tokens.
- Media retries. Reuse the same
Idempotency-Keyand body after an uncertain media submit. The API can return the original request without starting another generation. Check an existing request's status before retrying a chat submission.