meituan/longcat-image
Longcat Image is meituan's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runmeituan/longcat-imageInput Schema
6 parameters · 1 required · 5 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The prompt to generate an image from. |
seed | integer | Optional | The same seed and the same prompt given to the same version of the model will output the same image every time. |
aspect_ratio | string | Optional | The aspect ratio of the generated image. · Options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 21:916:93:24:35:41:14:53:42:39:16 |
output_format | string | Optional | The format of the generated image. · Options: jpeg, png · Default: "png" jpegpng |
guidance_scale | number | Optional | The guidance scale to use for the image generation. · Min: 1 · Max: 20 · Default: 4.5 |
num_inference_steps | integer | Optional | The number of inference steps to perform. · Min: 1 · Max: 50 · Default: 28 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "meituan/longcat-image",
"prompt": "A lioness crouching in the tall dry grass of the Serengeti during golden hour, intense gaze, telephoto lens with shallow depth of field",
"output_format": "png",
"guidance_scale": 4.5,
"num_inference_steps": 28
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Longcat Image
Longcat Image is a LongCat route built for text-to-image generation. It turns a visual brief covering subject, composition, light, and style into a finished still image matching the requested art direction, giving creators a focused endpoint instead of forcing one generic workflow across materially different production tasks. The route belongs to a family known for efficient generation, stable visual continuity, and practical media workflows, so it is best evaluated as a creative system for intentional shots and assets rather than as a one-click novelty generator.
Use this endpoint when the input contract and deliverable match that job exactly. Its documented controls include seed ( The same seed and the same prompt given to the same version of the model will output the same image every time. ); aspect_ratio choices (21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16); output_format choices (jpeg, png); guidance_scale (The guidance scale to use for the image generation). Together, these controls help teams plan predictable iterations, compare outputs under stable settings, and connect generation to high-volume creative iteration and avatar or video production without hiding the operational choices that shape the result.
Highlights
- Purpose-built Text-to-image generation. The route accepts a visual brief covering subject, composition, light, and style and produces a finished still image matching the requested art direction; its interface is scoped to that transformation, keeping source assets and creative intent explicit.
- Creative direction. Prompts can describe subject behavior, composition, camera intent, lighting, material, atmosphere, and temporal progression so the result is driven by a shot plan rather than isolated keywords.
- Route-specific control. The request exposes seed ( The same seed and the same prompt given to the same version of the model will output the same image every time. ); aspect_ratio choices (21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16); output_format choices (jpeg, png); guidance_scale (The guidance scale to use for the image generation), allowing the same concept to be tested systematically while preserving a repeatable production setup.
- Pipeline-ready output. The generated media asset is returned through the documented asynchronous output contract, which suits review queues, batch iteration, and downstream automation. Editors can review pacing, continuity, lens language, choreography, transitions, temporal artifacts, soundtrack alignment, color response, delivery framing, and cut compatibility before approval.
Pricing
| Configuration | Price |
|---|---|
| Standard request | $0.130000 |
When to Use
| Scenario | Why this model fits |
|---|---|
| Create the exact route output | Choose it when you need text-to-image generation and already have a visual brief covering subject, composition, light, and style. |
| Develop controlled variations | Keep the main brief fixed while changing one documented setting at a time to compare motion, framing, quality, or asset behavior. |
| Build repeatable batches | Use a consistent request shape for catalog, campaign, storyboard, game-asset, or social-content production. |
| Preserve source intent | Prefer this route when the supplied reference material must remain the foundation of a finished still image matching the requested art direction. |
| Connect a media pipeline | Use asynchronous results in an automated review, approval, post-production, or asset-management workflow. |
Prompt Guide
Start with the desired result, then describe the source relationship, subject action, composition or camera behavior, lighting, style, and timing. For text-to-image generation, state what must remain stable as clearly as what should change. Use only fields exposed by the schema; the example below is structurally valid for this route.
{
"prompt": "A lioness crouching in the tall dry grass of the Serengeti during golden hour, intense gaze, telephoto lens with shallow depth of field",
"seed": 1,
"aspect_ratio": "21:9",
"output_format": "png",
"guidance_scale": 4.5
}
Technical Specs
| Specification | Value |
|---|---|
| Model ID | meituan/longcat-image |
| Workflow | Text-to-image generation |
| Required inputs | prompt |
seed | integer |
prompt | string |
aspect_ratio | string; options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 |
output_format | string; options: jpeg, png |
guidance_scale | number; minimum: 1; maximum: 20 |
num_inference_steps | integer; minimum: 1; maximum: 50 |

