Getting started as a Consumer

This section walks you through buying your first Instrument Unit (1M tokens) and making your first consumption call. You can plug and play our scripts within your app to get started with buying and consuming inference instantly.

Sending your first consumption request

1

Sign up and get your keys

  1. Create an account at thegrid.aiarrow-up-right

  2. Navigate to API Keys (accessible here).

  3. Create a Consumption Key for making API calls

Store your keys securely:

2

Install the OpenAI SDK

The GRID uses the OpenAI Chat Completions API format.

pip install openai
3

Buy 1 Unit through the App

Use our Apparrow-up-right to Market Buy 1 Unit of your chosen Instrument (Chat Fast or Chat Prime).

  • Chat Fast: suited for latency-sensitive UX, high throughput, instantaneous responses

  • Chat Prime: suited for higher reasoning quality, thoughtful or calculative responses, deeper workflows

Read more about Current Instruments to guide your decision. Note: Today, Units bought in your Trading Account transfer to your Consumption Account automatically. Read more here.

4

Make 1 chat call

Call the Consumption API to consume tokens from your active Lot of Units.

5

Congratulations on your first purchase and first call!

The Units you purchased need to be consumed within 4 hours, as per Consumption Rules.

Where to go next:

  • Use the Trading API to buy units programmatically.

  • Use our Onboarding Guides for ready-to-go scripts to automate your buying and inference consumption on The Grid. These scripts cover common use cases for production implementation.

  • To ensure performant and efficient service, follow our Best Practices for moving your workloads from other inference providers/aggregators to The Grid

Last updated

Was this helpful?