HFAI Cloud Docs

Start in about
thirty seconds.

Mint a key, point any OpenAI-compatible client at the endpoint, and send your first request.

01 / QUICKSTART

Quickstart

Four steps from a wallet
to your first response.

  1. 01 / CREATE A KEY Create a key in HFAI Cloud

    Connect a Solana wallet, fund the balance with $HFAI, and mint an API key. The key is shown once and looks like hfai_live_….

  2. 02 / SET THE BASE URL Set the base URL

    Point your client at https://api.heartflowai.net/v1 — the same base URL for every model in the catalogue.

  3. 03 / SEND A REQUEST Send one request

    Any OpenAI-compatible client works. One curl call is enough to check that the key is live.

  4. 04 / READ THE RESPONSE Read the response

    The reply arrives in choices[0].message.content, metered at the model’s list price.

curl https://api.heartflowai.net/v1/chat/completions \
  -H "Authorization: Bearer hfai_live_…" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4-pro","messages":[{"role":"user","content":"Hello HFAI"}]}'

Replace hfai_live_… with a key from the app, and set the base URL to https://api.heartflowai.net/v1. Runnable examples for three languages are on the developers guide.

02 / THE FULL REFERENCE

The full reference

Ten pages covering the API end to end.
Each one opens in a new tab.

03 / NEXT STEPS

Next steps

Where the quickstart leads
once your first request lands.

ONE KEY · EVERY MODEL

Mint a key.
Send your first request.

Sign in with a Solana wallet, fund your balance with $HFAI, and copy the quickstart above.