Search Documentation

Search for pages and headings in the documentation

amber-phoenix-4

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

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

ParameterTypeDefaultDescription
max_tokensintβ€”Maximum tokens to generate.
streamboolfalseEnable streaming responses.

Endpoint

POST /v1/chat/completions

See the full Chat Completions API reference.