AnthropicMultimodal Model

    Claude Opus 4.8

    Anthropic's workhorse flagship for agentic coding and knowledge work. Opus 4.8 catches subtle code flaws that earlier Opus models let pass, holds a 1M-token context, and exposes adaptive thinking for balancing intelligence, latency, and cost.

    import OpenAI from "openai";
    
    const openai = new OpenAI({
      baseURL: "https://api.inference.net/v1",
      apiKey: "<YOUR_API_KEY>",
    });
    
    const completion = await openai.chat.completions.create({
      model: "claude-opus-4-8",
      messages: [
        {
          role: "user",
          content: "What is the meaning of life?"
        }
      ],
      stream: true,
    });
    
    for await (const chunk of completion) {
      process.stdout.write(chunk.choices[0]?.delta.content as string);
    }

    Start building with Claude Opus 4.8 today

    Serverless, OpenAI-compatible, and billed per token. No commitments.