One week of coding classes, one simple relay
Teaching a coding class means watching many small things work: a snippet runs, a learner changes one line, and the class sees the result. That flow is where SwiftRelay fits neatly. It is a pay-per-token API relay that connects in minutes: copy three lines and run. There is no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used.
For a teacher, that model keeps the focus on the lesson rather than on a recurring service charge. You can prepare examples, let students test prompts, and check the usage list to see tokens and cost per call. SwiftRelay also gives new accounts a $0.22 sign-up credit, which is enough to complete that first clean first run and confirm the setup with your class.
Think of the week as a series of short laps. Each one has a clear start, a small sample, and a visible finish. SwiftRelay is the relay behind those laps, carrying requests to the models you choose and keeping the balance visible as you go.
Connecting the class in three short steps
Start with the client that matches the model you plan to use. Claude models answer only through the official Claude Code or Claude Desktop client, version 2.1.285 or later. For Claude Code, the setup is three lines:
01 export ANTHROPIC_BASE_URL=https://api.fastapirelay.com 02 export ANTHROPIC_AUTH_TOKEN=<your swft_ key>
claude
Gemini models use their native protocol through Gemini CLI. The three lines are:
01 export GOOGLE_GEMINI_BASE_URL=https://api.fastapirelay.com 02 export GEMINI_API_KEY=<your swft_ key>
gemini
Codex uses the OpenAI-compatible endpoint, so its configuration is:
01 export OPENAI_BASE_URL=https://api.fastapirelay.com/v1 02 export OPENAI_API_KEY=<your swft_ key>
codex
For OpenAI-compatible clients, the base URL is https://api.fastapirelay.com/v1, with a swft_ key as the API key. That makes the classroom setup pleasantly direct: point the client at the SwiftRelay API host, add your key, and run the command. With up to 20 live API keys per account, you can keep separate keys for different class groups or experiments and still keep the work inside one account.
A useful teaching habit is to let students predict the result before running the sample. Ask them what the code should print, what the model should return, or which part of the prompt needs to change. The three-line setup is short enough to become part of the opening routine rather than a long technical detour.
Picking a model for each classroom exercise
Different exercises put different demands on a model. A quick debugging prompt may need only a short exchange, while a detailed explanation may produce more output. SwiftRelay lists current prices per 1M tokens, so you can compare options without guessing what a classroom session might cost.
Here are the current figures shown on the SwiftRelay pricing page:
- Claude Sonnet 5.5 (claude-sonnet-5-5): input $0.9792, output $4.89, cache read $0.0861.
- DeepSeek V4 Flash (deepseek-v4-flash): input $0.2639, output $1.06, cache read $0.006944.
- DeepSeek V4 Pro (deepseek-v4-pro): input $1.17, output $3.51, cache read $0.0389.
- Gemini 3.1 Pro (gemini-3.1-pro): input $1.35, output $7.81, cache read $0.1347.
- GPT-6.1 Sol (gpt-6.1-sol): input $0.1736, output $0.8542, cache read $0.0347.
You do not need to use every model in one lesson. You can build a week of short exercises around one dependable choice, then introduce another model for comparison. For example, students can send the same small programming prompt to GPT-6.1 Sol and DeepSeek V4 Flash, then discuss why the answers differ in length, structure, or level of detail.
The usage list in SwiftRelay shows tokens and cost per call. That turns model selection into a classroom discussion rather than a black box. After each exercise, you can point to the recorded usage and ask learners how changing the prompt affected the number of tokens. The numbers stay visible, the stopwatch keeps moving, and the class learns how API calls add up.
A worked classroom-day example
Here is an example, not a forecast: suppose one classroom day uses 200,000 input tokens and 100,000 output tokens with one model. Using the SwiftRelay prices, the cost would be calculated as follows.
- DeepSeek V4 Flash: $0.2639 for 200,000 input tokens plus $1.06 for 100,000 output tokens, for a total of $0.15878.
- GPT-6.1 Sol: $0.1736 for 200,000 input tokens plus $0.8542 for 100,000 output tokens, for a total of $0.12014.
- Claude Sonnet 5.5: $0.9792 for 200,000 input tokens plus $4.89 for 100,000 output tokens, for a total of $0.68484.
- Gemini 3.1 Pro: $1.35 for 200,000 input tokens plus $7.81 for 100,000 output tokens, for a total of $1.051.
This example shows why the usage list matters. A single day can be tracked in exact figures, and you can adjust the exercise before the next session. If a task asks for very long answers, you may choose a different model or ask students to keep responses tighter. If the class only needs brief completions, the input and output figures make the trade-off easy to read.
Top-ups are available at $1.39, $6.94, $13.89, $27.78, $69.44, and $138.89. That range lets you start small for a single demonstration or add a larger balance for a full teaching week. Because each call deducts only what it used, the balance itself becomes a simple teaching aid: students can watch usage build up across a sequence of calls.
Running Monday through Friday with visible usage
On Monday, connect the class and run one tiny sample. On Tuesday, use a short code snippet to compare two prompt styles. On Wednesday, let learners fix an error and inspect the tokens used. On Thursday, try a second model with the same exercise. On Friday, review the usage list together and identify which calls were efficient and which ones needed clearer instructions.
SwiftRelay does not sell plans. There is no monthly fee and nothing to subscribe to, so a quiet week does not carry a recurring charge. You can top up when you need more room for the next activity. The per-token approach also gives you a straightforward alternative to maintaining your own subscription or official account for classroom experiments.
Support is available through Messages in the dashboard, where login is required. There is no support email. For teachers, that keeps the conversation next to the usage information and the account controls you are already checking between lessons.
Referrals can also help the balance grow. You receive 14% of each top-up by someone you invited, and 3% from the people they invite. Rewards can be moved into the balance or withdrawn, with a $4.86 minimum for withdrawal. If a colleague tries SwiftRelay for their own class, the reward fits the same top-up-and-run routine.
Handling top-ups, refunds, and the first clean run
One more detail makes the balance easier to manage: unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee. That gives you a clear window for testing the setup and deciding how the balance should work for your lessons.
By the end of the week, you should have a short set of samples, a connected client, and a usage list that shows what each call cost. SwiftRelay has stayed out of the way: copy three lines and run, top up a balance, and let each call deduct only what it used. There is no monthly fee, nothing to subscribe to, and a $0.22 sign-up credit waiting for the first lap.
Start the stopwatch, connect your first sample, and sign up for SwiftRelay today.