Try Bifrost Enterprise free for 14 days. Explore now
A valid request URL is required to generate request examples{
"id": "<string>",
"created": 123,
"model": "<string>",
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>",
"index": 123
}
],
"background": "<string>",
"quality": "<string>",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"image_tokens": 123,
"text_tokens": 123
},
"total_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"image_tokens": 123,
"text_tokens": 123
}
},
"extra_fields": {
"request_type": "<string>",
"model_requested": "<string>",
"model_deployment": "<string>",
"latency": 123,
"chunk_index": 123,
"raw_request": {},
"raw_response": {},
"cache_debug": {
"cache_hit": true,
"cache_id": "<string>",
"hit_type": "<string>",
"requested_provider": "<string>",
"requested_model": "<string>",
"provider_used": "<string>",
"model_used": "<string>",
"input_tokens": 123,
"threshold": 123,
"similarity": 123
}
}
}Creates variations of an image. Request must be sent as multipart/form-data with model and image (or image[]).
Does not support streaming.
A valid request URL is required to generate request examples{
"id": "<string>",
"created": 123,
"model": "<string>",
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>",
"index": 123
}
],
"background": "<string>",
"quality": "<string>",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"image_tokens": 123,
"text_tokens": 123
},
"total_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"image_tokens": 123,
"text_tokens": 123
}
},
"extra_fields": {
"request_type": "<string>",
"model_requested": "<string>",
"model_deployment": "<string>",
"latency": 123,
"chunk_index": 123,
"raw_request": {},
"raw_response": {},
"cache_debug": {
"cache_hit": true,
"cache_id": "<string>",
"hit_type": "<string>",
"requested_provider": "<string>",
"requested_model": "<string>",
"provider_used": "<string>",
"model_used": "<string>",
"input_tokens": 123,
"threshold": 123,
"similarity": 123
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Model identifier in format provider/model
Image file to create variations of. Use field name image for a single file or image[] for multiple (first image is used).
Number of variations to generate
1 <= x <= 10Size of the output images
256x256, 512x512, 1024x1024, 1792x1024, 1024x1792, 1536x1024, 1024x1536, auto Format of the response
url, b64_json User identifier for tracking
Fallback models to try if primary model fails
Show child attributes
Successful response. Returns JSON with generated image variation(s).
Unique identifier for the generation request
Unix timestamp when the image was created
Model used for generation
Array of generated images
Show child attributes
Background type for the image
Output image format
png, webp, jpeg Quality of the generated image
Size of the generated image
256x256, 512x512, 1024x1024, 1792x1024, 1024x1792, 1536x1024, 1024x1536, auto Show child attributes
Additional fields included in responses
Show child attributes
Was this page helpful?