Skip to main content
POST
/
v1
/
images
/
generations
curl --request POST \
  --url https://api.foxapi.cc/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "phota-image",
  "prompt": "A portrait of a woman in a vintage library, soft natural light",
  "num_outputs": 1,
  "resolution": "1K",
  "aspect_ratio": "3:4"
}
'
{
  "created": 1757165031,
  "id": "task-unified-1757165031-uyujaw3d",
  "model": "<string>",
  "object": "image.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 45
  },
  "type": "image"
}

Documentation Index

Fetch the complete documentation index at: https://docs.foxapi.cc/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:phota-image
required

phota-image: Text-to-image, supports profile reference

Example:

"phota-image"

prompt
string
required

Image generation prompt

Notes:

  • Describe the image content you want to generate
  • Supports [[profile_id]] syntax to reference created profiles
Example:

"A portrait of a woman in a vintage library, soft natural light"

num_outputs
integer
default:1

Number of output images

Notes:

  • Each image is billed independently
Example:

1

resolution
string
default:1K

Output image resolution

Options:

  • 1K — Standard resolution
  • 4K — High resolution (double price)
Example:

"1K"

aspect_ratio
string
default:1:1

Output image aspect ratio

Options:

  • 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9
Example:

"1:1"

Response

Task created successfully

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

Actual model name used

object
enum<string>

Specific task type

Available options:
image.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Async task information

type
enum<string>

Task output type

Available options:
image
Example:

"image"