生成タスクの作成
新しい画像の生成を開始します。
Authorization
bearerAuth AuthorizationBearer <token>
認証が必要なすべてのリクエストでは、HTTP ヘッダーに次を追加してください:
In: header
Request Body
application/json
パラメータを指定して生成タスクを作成します。
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://api.pixai.art/v1/task" \ -H "Content-Type: application/json" \ -d '{ "parameters": { "prompts": "1girl, green hair, solo, standing", "modelId": "1983308862240288769", "width": 768, "height": 1280, "batchSize": 4 } }'{
"id": "string",
"status": "waiting",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"startedAt": "2019-08-24T14:15:22Z",
"endAt": "2019-08-24T14:15:22Z",
"outputs": {
"mediaIds": [
"string"
],
"mediaUrls": [
"string"
]
}
}Empty
Empty