Docs menuinvideo Platform docsQuickstartFor AI agentsAPI referenceAuthenticationRequestsFilesErrorsLimitsBilling and balanceCatalogueProvider keys (BYOK)Formats and model IDsChat completionsOpenAI ResponsesAnthropic MessagesGeminiStreaming chat answersTools (function calling)Structured output (JSON)VideoAudioUse your own SDKOpenAI mediaElevenLabsReplicatefalGemini mediaxAIRunwayLumaDeepgram and CartesiaMakers' own APIsVideo provider formatsImage provider formatsAudio provider formatsLLM provider formatsGenerate and edit imagesTest your integrationWorkspaces and membersSecurityService accountsModels
View as markdown

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:

text
https://platform-api.invideo.io

Add the path below.

You usePathPage
OpenAI SDK: images, speech to text, text to speech/v1OpenAI media
ElevenLabs SDK/elevenlabsElevenLabs
Replicate clients/replicateReplicate
fal queue API/falfal
Google GenAI SDK: Nano Banana, Gemini speech, Veo, Imagenno pathGemini media
xAI video/xaixAI
Runway SDK/runwayRunway
Luma SDK/lumaLuma
Deepgram and Cartesia/deepgram, /cartesiaDeepgram 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

ProviderSubmit or result pathSettled 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 operationsusageMetadata.cost_usd
Replicate/replicate/v1/predictionsmetrics.cost_usd
fal/fal/{model} and its queue status or resultusage.cost
xAI and Recraft images/xai/v1/images/*, /recraft/v1/images/generationsusage.cost
xAI videos/xai/v1/videos/generations, /xai/v1/videos/{id}usage.cost on result
Runway, Luma, BFL, Ideogram, legacy Kling, DashScope, MeshyMaker submit and result endpointsmetadata.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/v1metadata.invideo_cost_usd
Magnific/freepik/v1/aidata.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 pollusage.cost for images, data[].usage.invideo_cost_usd for video
BytePlus ModelArk/byteplus/api/v3/images/generations, /byteplus/api/v3/contents/generations/tasksusage.cost
BytePlus Seed Audio and Seed TTS/byteplus/api/v3/tts, /byteplus/api/v3/contents/generationsusage.invideo_cost_usd
BytePlus Vision/byteplusvision with submit or result actionmetadata.invideo_cost_usd for images, usage.invideo_cost_usd for video
ElevenLabs, Deepgram and CartesiaSpeech, transcription and stem separationmetadata.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/editsmetadata.invideo_cost_usd in JSON, header on audio
Mureka, LTX, HeyGen and Tencent Wand/mureka/v1, /ltx/v2, /heygen/v3, /tencent/v1/wandusage.invideo_cost_usd on result
Bach, Beeble and Tencent MPS/bach/api/vdr/video/v2, /beeble/v1/switchx/generations, /tencentmpsmetadata.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_body for the OpenAI SDK). They are checked against the model's inputs, like input in POST /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, n above 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-Key and 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.
Use your own SDK - Docs | invideo Platform