Error
A valid request URL is required to generate request examples{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>",
"index": 123
}
],
"background": "<string>",
"output_format": "<string>",
"quality": "<string>",
"size": "<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
}
}
}OpenAI Integration
Create image (Azure OpenAI)
Generates images from text prompts using Azure OpenAI deployment.
POST
/
openai
/
openai
/
deployments
/
{deployment-id}
/
images
/
generations
Error
A valid request URL is required to generate request examples{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>",
"index": 123
}
],
"background": "<string>",
"output_format": "<string>",
"quality": "<string>",
"size": "<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
}
}
}Authorizations
BearerAuthBasicAuthVirtualKeyAuthApiKeyAuth
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Path Parameters
Azure deployment ID
Query Parameters
Azure API version
Body
application/json
Model identifier
Text prompt to generate image
Number of images to generate
Required range:
1 <= x <= 10Size of the generated image
Available options:
256x256, 512x512, 1024x1024, 1792x1024, 1024x1792, 1536x1024, 1024x1536, auto Quality of the generated image
Available options:
standard, hd Style of the generated image
Available options:
natural, vivid Format of the response. This parameter is not supported for streaming requests.
Available options:
url, b64_json User identifier for tracking
Whether to stream the response. When true, images are sent as base64 chunks via SSE.
Fallback models to try if primary model fails
Response
Successful response
Was this page helpful?
⌘I

