Stable Diffusion
Stable Diffusion · GPT アクション
Stable Diffusion API
POST /text2imgGenerate images from text prompts
元の API スキーマ
{
"openapi": "3.0.0",
"info": {
"title": "Stable Diffusion API",
"version": "v3"
},
"servers": [
{
"url": "https://stablediffusionapi.com/api/v3"
}
],
"paths": {
"/text2img": {
"post": {
"operationId": "generateImage",
"summary": "Generate images from text prompts",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"prompt": {
"type": "string"
},
"negative_prompt": {
"type": "string"
},
"width": {
"type": "string"
},
"height": {
"type": "string"
},
"samples": {
"type": "string"
},
"num_inference_steps": {
"type": "string"
},
"seed": {
"type": "string"
},
"guidance_scale": {
"type": "number"
},
"safety_checker": {
"type": "string"
},
"multi_lingual": {
"type": "string"
},
"panorama": {
"type": "string"
},
"self_attention": {
"type": "string"
},
"upscale": {
"type": "string"
},
"embeddings_model": {
"type": "string"
},
"webhook": {
"type": "string"
},
"track_id": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Image generated successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"generationTime": {
"type": "number"
},
"id": {
"type": "integer"
},
"output": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}