Developers

Authentication & API keys

One header. The prefix of the key decides which world you are in.

The header

Every call carries your key as a bearer token:

Authorization: Bearer sk_live_...

There is no OAuth dance and no session: the API is for server-to-server use.

The prefix decides the environment

PrefixGoes toCredits
sk_live_ api.euromoda.ai/v1 Consumed — this is real work and real money
sk_test_ api.sandbox.euromoda.ai/v1 None

Build and test against sk_test_. Switching to production is changing one environment variable — which is also why that variable must never be the one you commit.

Getting a key

  1. Sign in at app.euromoda.ai.
  2. Open your workspace settings and create a key.
  3. Copy the secret then. It is shown once; afterwards only its prefix is stored, so we cannot show it to you again — and neither can anyone who gets into our database.

Public API access is included from the Pro plan upward.

Scopes

A key carries only the scopes you give it — for example generations:write, generations:read, models:read, billing:read, subaccounts:read. A key that only reads usage cannot spend credits, which is the point: the key in your reporting job should not be able to queue a generation.

Where to keep it

# Nel tuo ambiente, non nel codice.
export EUROMODA_API_KEY="sk_live_..."

curl https://api.euromoda.ai/v1/billing/balance \
  -H "Authorization: Bearer $EUROMODA_API_KEY"

And the way that costs you the key:

# 🔴 Mai cosi': l'argomento di un comando lo legge chiunque
# sia su quella macchina, con un semplice `ps`.
curl https://api.euromoda.ai/v1/generations?key=sk_live_...

A secret passed as a command argument is readable by anyone on that machine with ps, and a secret in a query string is written into every proxy log, every browser history and every Referer header along the way. Keys go in the environment, or in a secret manager — never in a URL, never in a repository, never in a frontend bundle.

The browser must never hold a live key. Anything shipped to a browser is public, whatever the bundler calls it. Call us from your server.

Rotation, and what to do when a key leaks

Create the new key first, deploy it, then revoke the old one. Doing it in that order means no request fails in between.

If a key has been exposed — pasted into a chat, committed, printed in a log, sent in a screenshot — revoke it immediately and treat it as compromised, even if nothing appears to have been spent. Rotating costs you two minutes; the alternative is someone else spending your credits with your attribution on it. Write to customer@euroingro.com if you need help checking what a key did before you killed it.

Rate limits

Limits are per plan and are reported by GET /billing/limits, which answers with your requests per minute, your concurrent jobs, your daily video jobs and your credit balance. Over the limit the API answers 429; back off and retry.

We deliberately do not print the numbers on this page. Read them from /billing/limits at runtime instead of copying them into your code: a number published here goes stale the day the plans change, and a client sized against a stale number does not fail loudly — it starts taking 429s in production while the documentation still agrees with it.

Public API access begins at Pro. On the trial and on Starter the key-authenticated API is not part of the plan, so this page describes something you cannot call yet — worth knowing before you build against it rather than after. The trial is metered as if it were Starter.