lithovas.

Cohere Embed 4.0 Quickstart — API Tutorial and First Request

This Cohere Embed 4.0 quickstart shows the fastest production path: create one 97AI.PRO API key, call `https://www.lithovas.com/api/embeddings`, verify the response, then move the request into your app. Pricing is $0.12 per million input tokens, failed embedding requests cost $0, and no Cohere account is required.

1-minute setup

  1. Create a 97AI.PRO account and open the API keys page.
  2. Top up at least $5 by credit card, USDC on Arbitrum, Alipay, or WeChat Pay.
  3. Copy an API key and call `https://www.lithovas.com/api/embeddings` with `model: "embed/embed-4.0"`.
  4. Log the returned credits and balance fields so your production app can show usage clearly.

Copy-ready first request

Run this from a terminal after replacing $YOUR_KEY with your live API key.

curl -X POST https://www.lithovas.com/api/embeddings \
  -H "Authorization: Bearer $YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"embed/embed-4.0","texts":["A product page about AI video generation"],"input_type":"search_document"}'

Production checklist

  1. Store the API key server-side only; never expose it in browser JavaScript.
  2. Add a request id to your own logs before every embedding request so retries are traceable.
  3. Handle failed calls as a normal state. 97AI.PRO charges $0 for failures, but your UI should still show the error.
  4. Keep client timeouts conservative because Cohere Embed 4.0 returns synchronously.

Frequently asked questions

Do I need a Cohere account for this Cohere Embed 4.0 tutorial?+

No. 97AI.PRO gives you one API key that works across Cohere Embed 4.0 and the rest of the model catalog.

Which endpoint should I use for Cohere Embed 4.0?+

Use `https://www.lithovas.com/api/embeddings` with `model: "embed/embed-4.0"`.

How much should I top up before testing?+

$5 is enough for a practical smoke test. The exact number of calls depends on the model and payload size.

Can I use this quickstart in China or without a US card?+

Yes. 97AI.PRO supports Alipay, WeChat Pay, and USDC on Arbitrum, and the platform is reachable from mainland China without a VPN.

What is the first production risk to test?+

Test failure handling first. Treat a failed embedding request as a normal API state, log it, show a clear message, and retry only when your app can do so safely.

Ready to try Cohere Embed 4.0?

Sign up on 97AI.PRO, top up with credit card / USDC / Alipay, and get an API key in under 60 seconds.