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

Replicate

Use Replicate's clients with the Platform. Every model, one generic API: create a prediction, wait with Prefer, read the result.

Base URL:

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

Use the owner invideo for Platform models: invideo/<model id>.

python
import os, replicate

client = replicate.Client(api_token=os.environ["INVIDEO_API_KEY"], base_url="https://platform-api.invideo.io/replicate")
output = client.run("invideo/nano-banana-2-1", input={"prompt": "A red fox in fresh snow"})
print(output)
bash
curl -X POST https://platform-api.invideo.io/replicate/v1/models/invideo/nano-banana-2-1/predictions \
  -H "Authorization: Bearer $INVIDEO_API_KEY" \
  -H "Prefer: wait=60" \
  -H "Content-Type: application/json" \
  -d '{"input": {"prompt": "A red fox in fresh snow"}}'
  • input is the model's own input object (see GET /v1/models/{id}); image_url, audio_url and video_url go to the model's file input.
  • Prefer: wait (or wait=N, 1 to 60 seconds) returns when the run ends. Without it the prediction is starting; read it with GET /v1/predictions/{id} until succeeded or failed.
  • output is a link of ours (a list for several files). Links last one hour; read the prediction again for a fresh one.
  • Webhooks and cancelling are not supported yet.