TemplatesPricing
Log inStart free
AI apps
Connect
API
Quick startReferenceModels & pricing
Account
API keysUsage

API reference

JSON over HTTPS at https://hew.design/api/v1. The same jobs, prices and limits as the canvas.

AuthenticationJobsMediaAccountRetries and limitsJob inputsErrors

Authentication

Send a key from API keys in every request. Keys spend the credits of the account that made them; revoking one stops it at once.

Header
Authorization: Bearer hew_live_…

Jobs

POST/api/v1/jobs

Start a generation. Answers 201 with the job; pictures and audio on most models are done at once.

modelstring · A model id from /api/v1/models. Leave it out to use the default for kind.
kindstring · image, image-edit, video, speech, music, or a Studio kind (lipsync, face-swap, motion-transfer, object-swap, video-edit, video-upscale, voice-change, dubbing, relight). Implied by model.
inputobject · The job’s fields (below). They may also sit at the top level.
projectstring · A project id. Leave it out: results go to the “AI apps” project.
consentboolean · Required for faces and voices of real people (lipsync, face-swap, motion-transfer, voice-change, dubbing).
curl
curl https://hew.design/api/v1/jobs \
  -H "Authorization: Bearer $HEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-3-pro-image","input":{"prompt":"…","aspect":"1:1"}}'
GET/api/v1/jobs/{id}

Read a job and move it along. ?wait= (seconds, up to 50) holds the answer until it is done.

GET/api/v1/jobs

Recent jobs, newest first.

limitnumber · 1–100, default 20.
statusstring · running, succeeded, failed or cancelled.
beforestring · The nextBefore of the previous page.
POST/api/v1/jobs/{id}/cancel

Stop a running job. Nothing is charged for it.

Media

POST/api/v1/media

Bring in a picture (PNG, JPEG, WebP up to 5 MB), a clip (MP4, MOV up to 90 MB) or a recording (MP3, WAV, M4A up to 25 MB). Returns a media id for job inputs.

urlstring · A public https link.
datastring · Base64 bytes or a data: URL, instead of url.
projectstring · The project to keep it in.
GET/api/v1/media/{id}

A fresh 7-day link to a result or an imported file.

Account

GET/api/v1/models

Every model with its price in credits per unit and what it takes (lengths, aspects, resolutions, voices). ?kind= filters. No key needed.

GET/api/v1/balance

Credits left, and when the monthly credits renew.

Retries and limits

Send an Idempotency-Key header with POST /api/v1/jobs: a retry with the same key and body within a day gets the first job back (idempotencyHit) and is charged once. MCP tools take it as idempotency_key.

curl
curl https://hew.design/api/v1/jobs \
  -H "Authorization: Bearer $HEW_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-3-pro-image","prompt":"…"}'

Each key can have a spend limit per day, week or month, set on API keys. Six jobs run at once per account; more wait for a 429.

Job inputs

A media value is a media id, a public https link (hew downloads it) or a data: URL. snake_case names work too.

promptstring · image, image-edit, video, music; the change for video-edit, relight.
aspectstring · 1:1, 4:5, 9:16, 16:9 … (aspect_ratio works too).
referencesmedia[] · Pictures to follow (image, image-edit, video).
imagemedia · The picture to change (image-edit, relight).
durationSecondsnumber · video, music (duration works too).
resolutionstring · 480p, 720p, 1080p … (video and video tools).
firstFrame, lastFramemedia · Start and end frames (video).
text, voice, stylestring · speech: what to say, a voice from the model’s list, how.
video, audio, mediamedia · Clips and recordings for the Studio kinds.
faces, subjectsmedia[] · face-swap faces; motion-transfer people.
targetLanguagestring · dubbing: the language to swap to (es, de, ja …).

Errors

JSON
{ "error": { "code": "insufficient_credits", "message": "This generation needs 9 credits; you have 2." } }
400 invalid_requestA field is missing or wrong; the message says which.
401 unauthorizedNo key, or a revoked one.
402 insufficient_creditsNot enough credits for this job (jobs still running hold theirs).
403 insufficient_scopeA read-only connection tried to spend credits.
403 spend_limit_exceededThe key reached the limit set for it on API keys.
409 conflictAn Idempotency-Key reused with another body, or still starting.
404 not_foundNo such job, media or project on this account.
413 too_large · 415 unsupported_mediaThe file is too big, or not a picture, clip or recording.
422 content_blockedThe request breaks the content rules.
429 rate_limitedToo many at once (6 jobs run together). Retry-After says when.
5xx provider_error · unavailableThe model failed or is busy. Nothing is charged; try again.

Your next Reel starts here.

Start freeAll templates

Templates, AI and Craftwork assets on one canvas, for every post you make.

Tools
RemixAI influencerCaptionFace swapLipsyncLanguage swap
Product
TemplatesPricingDesktop appChangelog
Resources
DocsMCP & APIBlogXCraftwork
Company
ContactPrivacyTermsData deletion
© 2026 Aproduct