endpoint
POST
/v1/videos/edits
Video editing
auth: API keybase https://app.nz/v1
Request
curl -sX POST https://app.nz/v1/videos/edits \
-H "Authorization: Bearer pk_live_..." \
-H "Content-Type: application/json" \
-d '{}'Models gateway
An OpenAI-compatible API in front of 15+ providers. Point any OpenAI or Anthropic client at the base URL and keep your code. Use app/auto to let the router pick a model from the prompt, or bias it with a variant, or pin a specific provider model. The same key meters usage across every call.
Model routes (the model field)
app/autorouteDefault. Reads the prompt and picks the backend.app/auto-coderouteBias toward strong coding models.app/auto-fastrouteLowest latency for interactive use.app/auto-cheaprouteBias toward lowest cost per token.app/auto-reasoningrouteRoute reasoning depth automatically.app/auto-visionrouteBias toward image-input models.app/auto-imagerouteBias toward image-generation models.routing_strategyparamprice by default; use config to preserve catalogue order or app/auto-fast for latency bias.provider/modelpinPin a specific upstream model, e.g. anthropic/claude or openai/gpt.Chat completion with auto routing
curl -s https://app.nz/v1/chat/completions \
-H "Authorization: Bearer pk_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "app/auto",
"messages": [{"role": "user", "content": "Explain CRDTs in one paragraph."}],
"reasoning_effort": "auto",
"stream": false
}'More in Models gateway
POST
/v1/chat/completionsChat completions (streaming + tools)POST/v1/messagesAnthropic-compatible messages (supports thinking)GET/v1/modelsList routable models and aliasesPOST/v1/embeddingsText embeddingsPOST/v1/images/generationsImage generationPOST/v1/videos/generationsVideo generationPOST/v1/videos/extensionsVideo extensionGET/v1/videos/{request_id}Poll xAI video jobsPOST/v1/music/generationsMusic generationPOST/v1/audio/generationsAudio and SFX generationPOST/v1/3d/generationsImage-to-3D GLB generationPOST/v1/panoramas/generationsImage-to-360 panorama or spatial-world generationPOST/v1/audio/speechText-to-speechPOST/v1/audio/transcriptionsAudio transcriptionPOST/v1/searchWeb and papers searchPOST/api/audio/generateGenerate music or SFX and save to the indexed audio libraryGET/api/audio/search?q=rainSemantic + keyword search over generated public/own audioGET/api/audioList recent public/own generated audio