Inference
Create response
Generate an image or video.
POST
Send a text prompt or image to generate a new image or video.
See the Supported models page to find which models support these different modalities.
Authorizations
Modular Cloud API key. Obtain from the API keys page.
Body
application/json
Model identifier. See the supported models page.
Example:
"black-forest-labs/FLUX.2-klein-4B"
Response
200 - application/json
Response object containing generated content.