Skip to Content
Docs
ReferenceCreate

Create with awen

POST
/create_with_awen

Runs one turn of awen's creative agent in a project conversation, as a message in awen does. It can make and edit images, videos, 3D models and documents, and it can change the project's Drive. awen itself removes or changes backgrounds, resizes, reframes, upscales and edits its files: ask for that in the prompt, or in a follow-up turn with conversation_id, instead of editing awen's files on this machine. It reads the user's memories and skills itself, so name them in the prompt instead of reading them first. It spends the organisation's credits. It answers at once with a turn_id while the turn runs. Unless the host draws a card, call get_turn with that turn_id until status is no longer working: nothing is ready before that.

Spending rules. A direct request from the user is approval to call this. When the idea is yours, describe the plan and ask first. A working status is no reason to start again. Never retry paid work on your own: ask the user first. A turn can end with a question: show it to the user and wait, and never answer it yourself. A retry the user asks for passes the same conversation_id. After a refusal, ask the user before starting a new conversation.

One job is one conversation, so a batch goes in one call. Without conversation_id, the turn starts a new conversation. A person can have at most 100 active conversations in a project: at the limit this is refused until they or you archive one with archive_conversation, after asking the user. A conversation takes one turn at a time until its generations start: a second call before then is refused and names the turn. Once they start, a second call is accepted and charged on its own while the first stays working, so wait for completed unless the user asks not to.

Needs a key with awen:create, awen:write. Costs 4 units of the key's rate limit.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from Settings → Connected apps → API keys, sent as Authorization: Bearer awen_sk_…. Keep it on a server: a request from a web page is refused.

Header Parameters

Idempotency-Key*string

Names this request, for you and this organisation. The same key with the same arguments answers the first result and starts or saves nothing again; the same key with other arguments is refused, and nothing starts. 1 to 128 letters, digits, ., _, : or -.

Match^[A-Za-z0-9._:-]+$
Length1 <= length <= 128

Request Body

application/json
  1. body
project_id*string

The project's project_id, from list_projects, search or create_project. The user must be able to edit it. Reuse a project the user already works in that fits, or ask. Create one only when the user asks for it or has none that fits.

Match^[A-Za-z0-9_-]+$
Length1 <= length <= 128
prompt*string

What the user wants, as they would write it to awen. Drop words that only name awen or this tool, and pass a long brief whole, never a summary. Say a video's length here.

Match^[^\x00]*$
Length1 <= length <= 32000
image_count?integer

How many images to make, from 1 to 6, each one charged. Without it awen makes the user's saved number, two unless they changed it, so set 1 when the user wants one image. Two new images come from two models. Leave it out for videos, 3D models and documents.

Range1 <= value <= 6
image_resolution?string

The images' resolution: 1k is the fastest and cheapest, 2k the default, 4k the most detailed and the most expensive. Set 1k when the user wants something small, quick or cheap. Leave it out for videos, 3D models and documents.

Value in"1k""2k""4k"
image_aspect_ratio?string

The images' aspect ratio, as width:height. Set it when the user names a format or a shape. Leave it out for videos, 3D models and documents.

Value in"1:1""3:4""4:3""3:2""2:3""4:5""5:4""9:16""16:9""21:9"
generation_tier?string

How awen picks its image and video models: quality, its usual choice; draft, faster and cheaper; or fastest. Without it, awen uses the user's saved setting. Leave it out unless the user asks for faster or cheaper results, or for the best quality.

Value in"quality""draft""fastest"
model?string

The model for this turn's images, videos or 3D models, as awen's model menu offers it: id@resolution when the model has resolutions. Leave it out unless the user names a model: without it, awen picks one for each step.

Value in"gpt-image-2-5-sunburst@1K""gpt-image-2-5-sunburst@2K""gpt-image-2-5-sunburst@4K""gpt-image-2-5-flare@1K""gpt-image-2-5-flare@2K""gpt-image-2-5-flare@4K""gpt-image-2-6-sunburst@1K""gpt-image-2-6-sunburst@2K""gpt-image-2-6-sunburst@4K""gpt-image-2-6-flare@1K""gpt-image-2-6-flare@2K""gpt-image-2-6-flare@4K""nano-banana-2-1@1K""nano-banana-2-1@2K""nano-banana-2-1@4K""nano-banana@1K""nano-banana@2K""nano-banana@4K""nano-banana-lite""mai-image-2-5@1K""mai-image-2-5@2K""seedream-5@1K""seedream-5@2K""ideogram-4@1K""ideogram-4@2K""ideogram-4@4K""arrow-2""arrow-2-telos""ideogram-vector""magnific-upscaler""topaz-upscaler""seedance-2-5@480p""seedance-2-5@720p""seedance-2-5@1080p""seedance-2@1080p""seedance-2@4K""seedance-2-mini@480p""seedance-2-mini@720p""flux-3-video@720p""flux-3-video@1080p""gemini-omni-flash@720p""gemini-omni-flash@1080p""gemini-omni-flash@4K""kling-v4@720p""kling-v4@1080p""kling-v3@1080p""kling-v3@4K""kling-o3@1080p""kling-o3@4K""grok-imagine-1-5""minimax-h3@480p""minimax-h3@768p""minimax-h3@2K""minimax-h3@4K""minimax-h3-max@480p""minimax-h3-max@768p""minimax-h3-max@1080p""minimax-h3-max-turbo@480p""minimax-h3-max-turbo@768p""minimax-h3-max-turbo@1080p""wan-3@480p""wan-3@720p""wan-3@1080p""wan-3-prime@480p""wan-3-prime@720p""wan-3-prime@1080p""ltx-2-5-fast@720p""ltx-2-5-fast@1080p""ltx-2-5-fast@2K""ltx-2-5-fast@4K""magnific-video-upscaler""topaz-video""minimax-h3-max-reframe""meshy-7-1""tripo-h3-1""hyper3d-rodin"
conversation_id?string

Continues this conversation of the user's in the project: use it for every follow-up or retry on the same work. Without it, the turn starts a new one.

Match^[A-Za-z0-9_-]+$
Length1 <= length <= 128
file_ids?array<>

Up to 20 files to work from: ids from a list, search or get_turn. A folder: id attaches a folder of this project, as a folder dropped in awen's message box does.

Itemsitems <= 20
folder_id?|

Where new files go: "root" (the default), or the entry_id of a folder of the project.

intelligence?string

How hard awen thinks about its reply, not image or video quality: asking for the best result does not ask for this. Leave it out unless the user asks. Without it, the conversation keeps its level.

Value in"medium""high""best"

Response Body

The operation's answer.

application/json
  1. response
turn_id*string
conversation_id*string
project_id*string
status*string
Value in"working""completed""failed""stopped"
url*string
next*string
warnings?array<string>
Example Request
curl -X POST 'https://app.awen.ai/api/v1/create_with_awen' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "project_id": "string",  "prompt": "string"}'
Example Response
{  "turn_id": "string",  "conversation_id": "string",  "project_id": "string",  "status": "working",  "url": "string",  "next": "string",  "warnings": [    "string"  ]}

Stop a turn POST

Stops a running turn, as Stop does in awen: it saves what the reply wrote so far, charges the model calls that finished and frees the conversation. Generations that already started finish and are charged. A turn that already ended is left as it is. Answers the turn's status. Needs a key with awen:create, awen:write. Costs 2 units of the key's rate limit.

Enhance an image or a video POST

Makes an enhanced copy of an image or a video of a project the user can edit, as the Enhance menu of awen's Drive does, without a turn of awen's agent: the same presets at the same price, from the organisation's credits. The source stays as it is; the copy goes in folder_id, or beside the source. It answers at once while the copy is made: see next. Image presets: upscale-precision (Preserve natural detail without inventing content); upscale-generative (Reconstruct plausible missing detail); upscale-creative (Add expressive detail to AI-generated work); restore (Rebuild detail in faded or degraded photos); denoise-light (For subtle grain); denoise-medium (For visible noise); denoise-heavy (For very noisy images); sharpen-auto (Correct ordinary blur); sharpen-severe (Rebuild details that are hard to make out); adjust-auto (Improve lighting and color); adjust-white-balance (Remove unwanted color casts); adjust-colorize (Add color to a black-and-white photo). Video presets: upscale-precision (Preserve natural detail without inventing content); upscale-generative (Reconstruct plausible missing detail); upscale-creative (Adds creative detail; size is automatic, up to 4K); denoise-light (Faster cleanup for lighter noise); denoise-medium (High-quality general cleanup); denoise-heavy (For extremely noisy footage); smooth-60-fps (Smoother motion at original speed); slow-motion-2x (Twice as long with natural motion); slow-motion-4x (Four times longer with natural motion); hdr (Expand luminance and color range; high creative intelligence use); deblur (Reduce blur in fast-moving footage); colorize (Add color to black-and-white footage). For anything else, such as removing a background, ask awen with create_with_awen. Needs a key with awen:create, awen:write. Costs 4 units of the key's rate limit.