This guide will walk you through integrating image generation models into your application using Nscale’s API. With our serverless architecture, you can focus on building your application without worrying about infrastructure management.
black-forest-labs/FLUX.1-schnell
"Authorization": "Bearer <API-KEY>"
"Content-Type": "application/json"
"model"
: "<model id e.g., black-forest-labs/FLUX.1-schnell>"
"prompt"
: "<text description of the desired image>"
"size"
: "<image size, defaults to 512x512>"
"n"
: "<number of images to generate, defaults to 1>"
b64_json
fielddata
fieldStatus | Description | Response Format |
---|---|---|
200 | Success | application/json response with image data |
401 | Invalid API key or unauthorized | Error object |
404 | Model not found or unavailable | Error object |
429 | Insufficient credit | Error object |
500 | Internal server error | Error object |
503 | Service temporarily unavailable | Error object |