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": "grok-imagine",
"prompt": "A futuristic astronaut relaxing on the surface of Mars, cinematic style"
}
}'
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "create-image",
"createdAt": "2024-01-15T10:30:00.000Z"
}
Highly aesthetic image generation by xAI.
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": "grok-imagine",
"prompt": "A futuristic astronaut relaxing on the surface of Mars, cinematic style"
}
}'
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "create-image",
"createdAt": "2024-01-15T10:30:00.000Z"
}
| Credits | 4 credits |
| 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 | grok-imagine |
input.prompt | string | Yes | Text prompt for image generation |
input.aspect_ratio | string | No | Aspect ratio. One of 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2. Defaults to 1:1. |
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": "grok-imagine",
"prompt": "A futuristic astronaut relaxing on the surface of Mars, cinematic style"
}
}'
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "create-image",
"createdAt": "2024-01-15T10:30:00.000Z"
}