---
title: "amber-phoenix-4"
description: "Media generation model for images and video"
---

`amber-phoenix-4` is Liutong's media generation model. It can produce high-quality images and video from text prompts.

## Capabilities

- Text-to-image generation
- Text-to-video generation
- High-resolution output
- Detailed scene composition from natural language descriptions

## API usage

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.liutong.llby.org/v1",
    api_key="lt_your_api_key",
)

response = client.chat.completions.create(
    model="amber-phoenix-4",
    messages=[
        {"role": "user", "content": "Generate a serene mountain landscape at sunset with a lake reflection."},
    ],
)

print(response.choices[0].message.content)
```

## Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `max_tokens` | int | — | Maximum tokens to generate. |
| `stream` | bool | false | Enable streaming responses. |

## Endpoint

`POST /v1/chat/completions`

See the full [Chat Completions API reference](/docs/api-reference/chat-completions).
