Skip to Content
Docs
ReferenceCreate

Enhance an image or a video

POST
/enhance

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.

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.

Request Body

application/json
  1. body
project_id*string

The project's project_id.

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

The entry_id of the image or video to enhance, from list_folder.

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

One of the presets this tool's description lists for the file's kind.

Match^[a-z0-9-]+$
Length1 <= length <= 64
upscale_factor?number

How many times larger an upscale preset makes the file, 1.1 to 4; 2 when omitted. A video's upscale-creative picks its own size, and the other presets take none.

Range1.1 <= value <= 4
folder_id?|

"root", or the entry_id of the folder the new file goes in; omit for the source's folder.

Response Body

The operation's answer.

application/json
  1. response
task_id*string
entry_id*string
project_id*string
folder_id*string
status*string
next*string
Example Request
curl -X POST 'https://app.awen.ai/api/v1/enhance' \  -H 'Content-Type: application/json' \  -d '{  "project_id": "string",  "entry_id": "string",  "preset": "string"}'
Example Response
{  "task_id": "string",  "entry_id": "string",  "project_id": "string",  "folder_id": "string",  "status": "working",  "next": "string"}

Create with awen POST

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.

MCP server

Connect an AI assistant to Awen, so it can find your work, organise your projects and create with Awen for you.