curl --request POST \
--url https://api.hicap.ai/v1/deployments/{deploymentId}/images/generations \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"prompt": "a corgi in a field",
"n": 1,
"size": "1024x1024",
"response_format": "url",
"user": "user123456",
"quality": "standard",
"style": "vivid"
}
'{
"created": "1676540381",
"data": [
{
"url": "https://www.contoso.com",
"b64_json": "<string>",
"content_filter_results": {
"sexual": {
"filtered": true,
"severity": "safe"
},
"violence": {
"filtered": true,
"severity": "safe"
},
"hate": {
"filtered": true,
"severity": "safe"
},
"self_harm": {
"filtered": true,
"severity": "safe"
}
},
"revised_prompt": "<string>",
"prompt_filter_results": {
"sexual": {
"filtered": true,
"severity": "safe"
},
"violence": {
"filtered": true,
"severity": "safe"
},
"hate": {
"filtered": true,
"severity": "safe"
},
"self_harm": {
"filtered": true,
"severity": "safe"
},
"profanity": {
"filtered": true,
"detected": true
},
"jailbreak": {
"filtered": true,
"detected": true
},
"custom_blocklists": {
"filtered": true,
"details": [
{
"filtered": true,
"id": "<string>"
}
]
}
}
}
]
}curl --request POST \
--url https://api.hicap.ai/v1/deployments/{deploymentId}/images/generations \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"prompt": "a corgi in a field",
"n": 1,
"size": "1024x1024",
"response_format": "url",
"user": "user123456",
"quality": "standard",
"style": "vivid"
}
'{
"created": "1676540381",
"data": [
{
"url": "https://www.contoso.com",
"b64_json": "<string>",
"content_filter_results": {
"sexual": {
"filtered": true,
"severity": "safe"
},
"violence": {
"filtered": true,
"severity": "safe"
},
"hate": {
"filtered": true,
"severity": "safe"
},
"self_harm": {
"filtered": true,
"severity": "safe"
}
},
"revised_prompt": "<string>",
"prompt_filter_results": {
"sexual": {
"filtered": true,
"severity": "safe"
},
"violence": {
"filtered": true,
"severity": "safe"
},
"hate": {
"filtered": true,
"severity": "safe"
},
"self_harm": {
"filtered": true,
"severity": "safe"
},
"profanity": {
"filtered": true,
"detected": true
},
"jailbreak": {
"filtered": true,
"detected": true
},
"custom_blocklists": {
"filtered": true,
"details": [
{
"filtered": true,
"id": "<string>"
}
]
}
}
}
]
}Your Hicap API key.
Deployment id of the dalle model which was deployed.
"dalle-deployment"
api version
"2025-01-01-preview"
A text description of the desired image(s). The maximum length is 4000 characters.
1"a corgi in a field"
The number of images to generate.
1 <= x <= 1The size of the generated images.
256x256, 512x512, 1792x1024, 1024x1792, 1024x1024 The format in which the generated images are returned.
url, b64_json A unique identifier representing your end-user, which can help to monitor and detect abuse.
"user123456"
The quality of the image that will be generated.
standard, hd The style of the generated images.
vivid, natural Was this page helpful?