Endpoint
Request Body
The
input object accepts model-specific parameters. Some models also support:
Safety identifier
safety_identifier is required. It identifies the real person at the end of your chain of customers, and it does not change authentication, billing, routing, or the provider payload. Send a stable, pseudonymous ID (your internal user ID or a hash of it, never a new random ID per request), and never an email address, a name, a phone number or an IP address, hashed or not. The same person must keep the same ID across requests. See Safety identifier requirements.
Workflow triggers require it too; the engine copies it onto every step’s prediction.
The value is trimmed. JSON null, an empty string and a whitespace-only string are treated as absent. It must be 1–256 characters with no control characters. An unusable value is ignored: if it is not a string, is longer than 256 characters, or contains control characters, the request is treated as missing.
Using a configured model fallback
Saving or enabling a model fallback does not automatically apply it to prediction requests. Includefallback_selector in every request that should use it, at the top level alongside model and input, not inside input.
Use the saved configuration’s slug, not the fallback model’s slug or ID. The configuration must be enabled and belong to the API key’s organization and the requested primary model. The selector accepts 1-50 lowercase letters and digits separated by single hyphens.
For example, if you have saved an enabled configuration with the slug quality-recovery for flux-1-1-pro:
quality-recovery with your saved configuration’s slug. Keep model and input set for the primary model; the saved configuration supplies the fallback models and input mappings. If fallback_selector is omitted, only the primary model runs, even when a fallback configuration exists.
Code Examples
Response
Response Fields
Error Responses
What Happens Next
After creating a prediction, the model processes your input asynchronously. Here’s how you can get your results:- Poll: Use Get Prediction to check status
- Webhook: Provide a
webhook_urland get results delivered automatically when they’re ready
Every model has different input parameters. Use Get Model to grab the
request_schema for any model and see exactly what it expects.