1. Create an API key
Sign in to the Yelu dashboard, create an API key, and copy it immediately. Store it in a password manager or secret manager; do not commit it to source control.2. Set your environment
3. Send a request
4. Use the OpenAI SDK
Yelu accepts OpenAI-compatible SDK requests. Configure the key and base URL; the rest of your application can use normal SDK methods.5. Verify the result
A successful Chat Completions response includes anid, model, choices, and usage. The generated text is at choices[0].message.content.
Stream tokens
Render output as the model generates it.
Call tools
Connect models to your application functions.