Train a Custom Model
Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
POST
/api/rest/v1/models
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/api/rest/v1/models' \
--header 'content-type: application/json' \
--data-raw '{
"modelType": "GENERAL",
"nsfw": false,
"resolution": 512,
"strength": "MEDIUM"
}'
Response Response Example
{
"sdTrainingJob": {
"customModelId": "string",
"apiCreditCost": 0
}
}
Request
Header Params
content-type
stringÂ
required
Example:
application/json
Body Params application/json
Responses
Modified at 2024-07-29 07:49:50