cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/models/openai/gpt-image-2.5-sunburst' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"id": "openai/gpt-image-2.5-sunburst",
"provider": "openai",
"name": "GPT Image 2.5 Sunburst",
"description": "GPT Image 2.5 Sunburst",
"type": "image",
"capabilities": [
"text-to-image",
"image-to-image"
],
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"prompt": {
"description": "Text prompt describing the image to generate or edit.",
"type": "string",
"minLength": 1,
"maxLength": 32000
},
"images": {
"description": "Reference images as stable public HTTPS URLs or PNG, JPEG, or WebP data URIs. URL-based references are subject to limits of 16 MiB per image and 64 MiB combined per request.",
"type": "array",
"minItems": 1,
"maxItems": 16,
"items": {
"type": "string"
}
},
"quality": {
"description": "Output quality.",
"type": "string",
"enum": [
"medium",
"high",
"xhigh",
"max"
],
"default": "high"
},
"size": {
"description": "Output dimensions. Custom sizes must use edges divisible by 16, a longest-to-shortest-edge ratio of at most 3:1, and 655,360–3,686,400 pixels. The existing 2048x2048 preset is also supported.",
"type": "string",
"pattern": "^(?:auto|[1-9][0-9]{2,3}x[1-9][0-9]{2,3})$",
"examples": [
"auto",
"1024x1024",
"1536x1024",
"1024x1536",
"2048x2048",
"2048x1152",
"1152x2048",
"1024x1280"
],
"default": "auto"
},
"background": {
"description": "Background behavior.",
"type": "string",
"enum": [
"transparent",
"opaque",
"auto"
],
"default": "auto"
},
"output_format": {
"description": "Generated image format.",
"type": "string",
"enum": [
"png",
"webp",
"jpeg"
],
"default": "png"
}
},
"required": [
"prompt"
],
"allOf": [
{
"if": {
"properties": {
"background": {
"const": "transparent"
}
},
"required": [
"background"
]
},
"then": {
"not": {
"properties": {
"output_format": {
"const": "jpeg"
}
},
"required": [
"output_format"
]
}
}
}
],
"additionalProperties": false
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "MODEL_NOT_FOUND",
"status": 404,
"message": "Generation model not found",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "CATALOG_UNAVAILABLE",
"status": 503,
"message": "Could not load generation models",
"data": "<unknown>"
}
}Models
Get a model
Read the input schema for a chosen model.
GET
/
models
/
{provider}
/
{model}
cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/models/openai/gpt-image-2.5-sunburst' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"id": "openai/gpt-image-2.5-sunburst",
"provider": "openai",
"name": "GPT Image 2.5 Sunburst",
"description": "GPT Image 2.5 Sunburst",
"type": "image",
"capabilities": [
"text-to-image",
"image-to-image"
],
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"prompt": {
"description": "Text prompt describing the image to generate or edit.",
"type": "string",
"minLength": 1,
"maxLength": 32000
},
"images": {
"description": "Reference images as stable public HTTPS URLs or PNG, JPEG, or WebP data URIs. URL-based references are subject to limits of 16 MiB per image and 64 MiB combined per request.",
"type": "array",
"minItems": 1,
"maxItems": 16,
"items": {
"type": "string"
}
},
"quality": {
"description": "Output quality.",
"type": "string",
"enum": [
"medium",
"high",
"xhigh",
"max"
],
"default": "high"
},
"size": {
"description": "Output dimensions. Custom sizes must use edges divisible by 16, a longest-to-shortest-edge ratio of at most 3:1, and 655,360–3,686,400 pixels. The existing 2048x2048 preset is also supported.",
"type": "string",
"pattern": "^(?:auto|[1-9][0-9]{2,3}x[1-9][0-9]{2,3})$",
"examples": [
"auto",
"1024x1024",
"1536x1024",
"1024x1536",
"2048x2048",
"2048x1152",
"1152x2048",
"1024x1280"
],
"default": "auto"
},
"background": {
"description": "Background behavior.",
"type": "string",
"enum": [
"transparent",
"opaque",
"auto"
],
"default": "auto"
},
"output_format": {
"description": "Generated image format.",
"type": "string",
"enum": [
"png",
"webp",
"jpeg"
],
"default": "png"
}
},
"required": [
"prompt"
],
"allOf": [
{
"if": {
"properties": {
"background": {
"const": "transparent"
}
},
"required": [
"background"
]
},
"then": {
"not": {
"properties": {
"output_format": {
"const": "jpeg"
}
},
"required": [
"output_format"
]
}
}
}
],
"additionalProperties": false
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "MODEL_NOT_FOUND",
"status": 404,
"message": "Generation model not found",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "CATALOG_UNAVAILABLE",
"status": 503,
"message": "Could not load generation models",
"data": "<unknown>"
}
}Authorizations
apiKeybeareroauth
Path Parameters
Was this page helpful?