Skip to main content
Use this page when you already understand the basics and want working examples to copy into your app. You can use it for:
  • small request examples
  • runnable sample projects
  • cookbook walkthroughs that explain the project structure
Examples marked with :free do not require deposited credits.

Free text generation

Use this example for the fastest zero-credit smoke test with the Responses API.
Use this when you want an OpenAI-compatible chat request against a paid model.

Image generation

Use this when your app needs a generated image from a prompt.

Runnable sample projects

Each sample project has a matching cookbook walkthrough.

Browser apps

Script and backend starters

Prompt-first starters

If you want a coding agent to generate the first version for you, start here:

More SDK examples

Explore the SDK Reference or Rust SDK guide for language-specific examples.
Last modified on July 26, 2026