Skip to Content
Docs
ReferenceKey

Revoke this key

POST
/revoke_this_key

Revokes the API key this call is sent with, at once and for good, as Revoke in Settings does: every later call with it answers 401 invalid_api_key. Call it when a job is done with its key, or when the key may have leaked. Any key may revoke itself, whatever its access, its organisation's plan or the Owner's switch.

Needs a key with any access. Costs 1 unit 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

Response Body

The operation's answer.

application/json
  1. response
revoked*boolean
Example Request
curl -X POST 'https://app.preview.awen.ai/api/v1/revoke_this_key' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "revoked": true}

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 balance. 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.

MCP server

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