Developers
Build generationinto your product
Anything you can do on the web, you can do through the API. One key covers images, video, character swap and voice, billed exactly like the web app.
- Base URL
- https://api.xogpu.com
- Auth
- Authorization: Bearer <key>
Start by listing the models your key can call — each data[].id is a valid model value.
export XOGPU_API_KEY='key-from-your-console'
curl https://api.xogpu.com/v1/models \
-H "Authorization: Bearer $XOGPU_API_KEY"Endpoints
Four capabilities, one key
Each capability maps to a studio on the web, with parameters that match its options one-to-one.
Image Generation
/v1/images/generations · /v1/images/edits
Uses the familiar Images request format: JSON for text-to-image, multipart file uploads for reference edits. For GIFs, set output_format on the text-to-image endpoint.
Video Generation
/v1/videos
MiniMax-H3 text to video, first & last frame, audio sync and multi-reference modes. The full model ID selects mode and quality, e.g. xogpu-video-text-768p.
Character Swap
/v1/videos
Shares the video endpoints: upload character images and a driving video. Single- and multi-character each have their own model ID; length is 5–25 s.
AI Voice
/v1/audio/generations
A voice sample plus text produces a WAV. Call the free quote endpoint first to estimate the character cost. We recommend a separate key for voice.
Endpoint overview
Submit, poll, downloadThree steps to a result
Video, character swap and voice are async jobs. Create calls are not idempotent: if a request times out, check your job history before retrying.
- 01SubmitPOST creates a job and immediately returns a task object with status queued. Keep the returned id.
- 02PollGET the same id: queued, in_progress, until completed or failed.
- 03DownloadOnce completed, request /content with auth to get the binary and save it to your own storage.
General
- GET
/v1/modelsList the models your key can call
Image
- POST
/v1/images/generationsText-to-image and GIF, JSON request - POST
/v1/images/editsReference edit, multipart image upload
Video and character swap
- POST
/v1/videosCreate a video job, multipart request - GET
/v1/videos/{id}Get job status and progress - GET
/v1/videos/{id}/contentDownload the result, video/mp4
Voice
- POST
/v1/audio/generations/quoteFree quote, estimated per character - POST
/v1/audio/generationsCreate a voice job, multipart request - GET
/v1/audio/generations/{id}Get a voice job - GET
/v1/audio/generations/{id}/contentDownload WAV
Try it on the canvas,
get the pipeline right,then write the code.
Wire text, images, video and voice together as nodes on the infinite canvas. Once the settings and results look right, call the API with the same steps.
Bearer keys
Create a key in the console and send it in the Authorization header. Keep keys on your server only — never in front-end code or URLs.
One balance
API calls share your account balance and billing rules with the web app, and every charge is on record.
Script
Output · Text
Storyboard
Output · Text
Image
Output · Image
Video
Output · Video
Timeline
Output · Final cut
The voice node plugs into the video node's audio port, so lips move with the voice
Ready to integrate?
Sign up, top up and create a key to start calling. Full parameters, asset limits and error codes for every mode are in the API docs.







