Skip to main content
Models use the same run lifecycle. The current catalog is focused on video generation: choose a model, submit a run, and retrieve the result when it finishes.
Protoface Studio is the browser editor; it is separate from the inference API, which does not expose Studio projects or scenes.

Prerequisites

Create an API key in the Protoface dashboard. If the key uses scopes, it needs runs:write to submit work and runs:read to check the result. Set it in your shell:

1. Submit a run

This example generates an eight-second video with MiniMax H3:
The response contains the run ID, its queue status, and the credits reserved for it. This is an excerpt:
Credit prices can change. Use the estimate returned by the API instead of hard-coding the value shown here.

2. Check the status

Poll until status is completed, failed, or canceled. Use a delay between requests; the status endpoint is intended for polling.

3. Retrieve the result

For a run with one video output, video contains the file. This is an excerpt:
See Runs for the full outputs array and lifecycle.

Next

Models

Read model capabilities and request fields.

Runs

Handle inputs, polling, cancellation, and retries.