Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.studio.nebius.com/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "black-forest-labs/flux-schnell",
"loras": {
"scale": 1,
"url": "https://civitai.com/api/download/models/244808?type=Model&format=SafeTensor"
},
"prompt": "<string>",
"width": 512,
"height": 512,
"num_inference_steps": 40,
"seed": -1,
"guidance_scale": 50,
"negative_prompt": "",
"response_extension": "webp",
"response_format": "b64_json"
}'
{
"data": [
{
"b64_json": "<string>",
"url": "<string>"
}
],
"id": "<string>"
}
curl --request POST \
--url https://api.studio.nebius.com/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "black-forest-labs/flux-schnell",
"loras": {
"scale": 1,
"url": "https://civitai.com/api/download/models/244808?type=Model&format=SafeTensor"
},
"prompt": "<string>",
"width": 512,
"height": 512,
"num_inference_steps": 40,
"seed": -1,
"guidance_scale": 50,
"negative_prompt": "",
"response_extension": "webp",
"response_format": "b64_json"
}'
{
"data": [
{
"b64_json": "<string>",
"url": "<string>"
}
],
"id": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful Response
The response is of type object
.