Create a Generation of Images
Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
POST
/api/rest/v1/generations
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/api/rest/v1/generations' \
--header 'content-type: application/json' \
--data-raw '{
"prompt": "string"
}'
Response Response Example
{
"sdGenerationJob": {
"generationId": "string",
"apiCreditCost": 0
}
}
Request
Header Params
content-type
stringÂ
required
Example:
application/json
Body Params application/json
Responses
Modified at 2024-07-29 07:07:45