Template drawing
Use templates to generate images.
POST
/openapi/v2/image/template/generateBody Parametersapplication/json
prompt string
Text prompt
template_id* integer
Template ID
Responses
200 OK application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"template_id": 0
3}
1curl -X POST "https://api.digislash.com/openapi/v2/image/template/generate" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"template_id": 0
6}'
1▼{
2"ErrCode": 0,
3"ErrMsg": "success",
4▼"RespData": {
5"id": 123456
6}
7}
