LLM Reference

Using Grok-2 on SiliconFlow

Implementation guide · Grok 2 · xAI

Serverless

Quick Start

  1. 1
    Create an account at SiliconFlow and generate an API key.
  2. 2
    Use the SiliconFlow SDK or REST API to call grok-2.
  3. 3
    You'll be billed $0.50/1M input, $0.50/1M output tokens.

Code Examples

Code examples for this provider have not been sourced yet.

About SiliconFlow

SiliconFlow is a model serving platform for open and closed model inference, offering fast and cost-effective API access to popular AI models.

Pricing on SiliconFlow

TypePrice (per 1M)
Input tokens$0.50
Output tokens$0.50

Capabilities

ReasoningStructured Outputs

About Grok-2

Grok-2 is xAI's Grok 2 model with an optional reasoning mode. It offers a 128K-token context window.

Model Specs

Released2024-08-01
Context128K
ArchitectureDecoder Only

Provider

SiliconFlow