curl -X POST https://api.artificialstudio.ai/api/run \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"tool": "create-image",
"input": {
"model": "sdxl-lightning",
"prompt": "A colorful hot air balloon floating over a desert canyon"
}
}'
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "create-image",
"createdAt": "2024-01-15T10:30:00.000Z"
}
Run SDXL at the speed of light. Ultra fast and ultra cheap.
curl -X POST https://api.artificialstudio.ai/api/run \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"tool": "create-image",
"input": {
"model": "sdxl-lightning",
"prompt": "A colorful hot air balloon floating over a desert canyon"
}
}'
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "create-image",
"createdAt": "2024-01-15T10:30:00.000Z"
}
| Credits | 1 credit |
| Tool | create-image |
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Your API key |
Content-Type | string | Yes | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
tool | string | Yes | create-image |
input.model | string | Yes | sdxl-lightning |
input.prompt | string | Yes | Text prompt for image generation |
input.image_size | string | No | Aspect ratio. One of square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9. Defaults to landscape_4_3. |
curl -X POST https://api.artificialstudio.ai/api/run \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"tool": "create-image",
"input": {
"model": "sdxl-lightning",
"prompt": "A colorful hot air balloon floating over a desert canyon"
}
}'
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "create-image",
"createdAt": "2024-01-15T10:30:00.000Z"
}