aeyho

Quickstart

From no key to your first reel. Make a key, check it works, make a reel for a brand, and wait for it to be ready.

View as Markdown

On this page

1. Make a key

Make an API key in aeyho's settings. Start with a test key (aey_test_…): it reads your real account but answers every change with a sample, and uses no credits. See test mode.

The key is shown once. Keep it in an environment variable:

export AEYHO_KEY=aey_test_...

2. Check it works

curl https://www.aeyho.com/api/v1/account \
  -H "Authorization: Bearer $AEYHO_KEY"
{ "plan": "pro", "credits": { "balance": 412.5 }, "livemode": false }

3. Pick or make a brand

List your brands:

curl https://www.aeyho.com/api/v1/brands \
  -H "Authorization: Bearer $AEYHO_KEY"

Or make one from a website, Instagram or YouTube link. aeyho reads the link and fills in the brand:

curl -X POST https://www.aeyho.com/api/v1/brands \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"link": "https://example.com"}'

Making a brand needs a paid plan.

4. Make a reel

Say what it's about in a line. Add "format": "carousel" for a carousel.

curl -X POST https://www.aeyho.com/api/v1/reels \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"brandId": "brand_123", "title": "Why a cache stampede happens", "seconds": 20}'

It answers 202 at once with a Reel whose status is queued. Making it uses credits.

While the script is being written, the reel's id may start with idea_. Keep polling with that id. Once the answer carries a different id, use that one from then on.

5. Wait for it

Poll every 10 to 15 seconds until status is done or failed:

curl https://www.aeyho.com/api/v1/reels/reel_123 \
  -H "Authorization: Bearer $AEYHO_KEY"

When it's done, videoUrl and posterUrl are links to the files (a carousel has images). The links are signed and work for an hour, so fetch the reel again for fresh ones. Instead of polling, you can listen for webhooks.

6. Comment and fix

Pin a comment to a moment, then ask aeyho to fix it. Only the parts you commented on change when they can. See versions and comments.

Try it

curl https://www.aeyho.com/api/v1/reels?limit=5 \
  -H "Authorization: Bearer $AEYHO_KEY"