API Documentation
Chat Completions
Embeddings
Completions
Other APIs
Images
Create Image
POST
/
images
/
generations
Copy
curl https://gateway.obiguard.ai/v1/images/generations \
-H "Content-Type: application/json" \
-H "x-obiguard-api-key: $OBIGUARD_API_KEY" \
-d '{
"model": "dall-e-3",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'
Copy
{
"created": 123,
"data": [
{
"b64_json": "<string>",
"url": "<string>",
"revised_prompt": "<string>"
}
]
}
Authorizations
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Copy
curl https://gateway.obiguard.ai/v1/images/generations \
-H "Content-Type: application/json" \
-H "x-obiguard-api-key: $OBIGUARD_API_KEY" \
-d '{
"model": "dall-e-3",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'
Copy
{
"created": 123,
"data": [
{
"b64_json": "<string>",
"url": "<string>",
"revised_prompt": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.