Write effective prompts for Runware's image and video models. Use whenever an agent is composing a prompt and wants model-appropriate phrasing, in-image text...
设计与多媒体
Runware Run
试用How to actually call the Runware API correctly for any task - inspect the model's schema, send the right fields, run synchronously for images or asynchronous...
它能做什么
How to actually call the Runware API correctly for any task - inspect the model's schema, send the right fields, run synchronously for images or asynchronously for video/audio/3D, and read the result. Load this whenever an agent is about to make a real Runware generation call. Foundation skill that every outcome skill builds on.
技能文档
Running a Runware task
Runware exposes one request shape across every modality: you send a task with a taskType, a model (the AIR), and the parameters that model's schema allows. This skill is the execution contract. Outcome skills decide what to run; this skill is how to run it without guessing.
The contract (follow in order)
- Pick the model + taskType. Get the model from
runware-models(live lookup). ThetaskTypefollows the modality:imageInferencefor images,videoInferencefor video,audioInferencefor audio,modelUploadfor custom models. A just-launched model not yet in the SDK registry throws "Unknown model" - passtaskTypeexplicitly to bypass that. - Inspect the schema before calling. Resolve the model's JSON Schema (the SDK and MCP do this for you). Use only fields the schema allows, and mirror its field names exactly. Never invent or guess parameter names - if it's not in the schema, it does not exist.
- Provide inputs as URLs or base64. Local files get uploaded first (the SDK/MCP have an upload step). Reference images, source video, audio, masks all go under the model's documented input fields.
- Run with the right delivery mode:
- Images / fast tasks → synchronous. The call returns the finished result.
- Video / audio / 3D / training → asynchronous. The task returns a
taskUUID; pollgetResponseuntil it reports terminal. Don't block a single sync call on a minutes-long job.
- Read the result. Images return image URLs; video returns
videoURL; 3D returns files underoutputs.files[].url. Check the modality's result shape, don't assume.
Cost discipline
- Dry-run first when uncertain. Add the header
X-Runware-Dry-Run: 1to validate a request and get its cost without executing or being charged. Safe even for destructive task types. Use it to confirm the schema gate and the price before a real run. - Set
includeCost: trueto get the real cost back on a live run.
Identity
- Models are addressed by AIR (e.g.
bfl:7@1,google:3@2,runware:400@2). Slugs also resolve and are the future-canonical form. Communicate AIRs in calls. - Account-owned / test models use the
runwaresource (e.g.runware:sdk_test@1).
Surfaces
The same contract holds whether the agent drives the TypeScript SDK (@runware/sdk), the Python SDK (runware), the MCP tools, or the CLI. Prefer the SDK/MCP - they handle schema resolution, upload, and async polling for you. For LLM/text models, Runware also exposes an OpenAI-compatible endpoint at api.runware.ai/v1.
Quality bar
- The request used only schema-valid fields (verified, not assumed).
- Time-based tasks were run async and polled, not blocked on a sync call.
- Cost was known (dry-run or
includeCost) before committing to a batch.
Related skills
runware-models (pick the model), runware-prompting (write the prompt), and every outcome skill (they specialize this contract).
相关技能
Pick the right Runware model for a task and keep that choice current. Use when an agent needs to decide "which model for X", discover what's available, or ch...
Build a chat, reasoning, or tool-calling agent on top of Runware-hosted LLMs. Use when the user says "make an agent that can call my functions", "let the mod...
Image-to-video generation on RunComfy. This image-to-video skill turns any still image into a short video clip via the RunComfy Model API. The image-to-video pipeline supports portrait animation, product reveal, scene motion, and synchronized-audio image-to-video output. Calls the right image-to-video endpoint for the user's intent (general image-to-video, lip-sync image-to-video, multi-modal image-to-video) through `runcomfy run <model>/image-to-video`. Triggers on "image to video", "image-to-video", "i2v", "animate image", "image2video", "make a video from image", "still to video", "still-to-video", or any explicit ask for image-to-video conversion.
Generate and edit video with InfiniteTalk through RunAPI. Use when the user asks an agent to create, edit, or transform video with InfiniteTalk. Default to the RunAPI CLI for one-off generation; use SDKs only when the user is integrating RunAPI into an app or backend.
Choose RunAPI SDK packages for application developers building web apps, backends, workers, or libraries. Use when the user asks to integrate RunAPI into code, pick JavaScript/Python/Ruby/Go/Java/PHP packages, or understand core SDK vs Provider Client packages. Do not use for one-off generation or agent-executed media tasks; use the RunAPI CLI or the relevant model skill instead.