> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gravitex.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Start

> Get started with GravitexAI in just three simple steps

## Step 1: Account Setup

### 1.1 Get Your Account

<Note>
  GravitexAI **does not offer public registration**. To use our services, please contact our BD (Business Development) team to provision your account.
</Note>

Reach out to our BD team through one of the following channels:

<CardGroup cols={2}>
  <Card title="Call BD" icon="phone" href="tel:+8613603055233">
    Call us at: **+86 136 0305 5233**
  </Card>

  <Card title="Email BD" icon="envelope" href="mailto:bd@gravitex.ai">
    Send an email to [bd@gravitex.ai](mailto:bd@gravitex.ai)
  </Card>
</CardGroup>

Once your account is provisioned, you'll receive login credentials to access the [GravitexAI Console](https://maas.gravitex.ai).

### 1.2 Add Credits

Log in to the console to top up:

1. Click "Personal Center"
2. Click "Billing Recharge" to pay (Alipay, WeChat supported)

For invoices or bank transfers, please contact your BD for assistance.

## Step 2: Create API Key

### 2.1 Generate Key

1. Click "Model Center" in the navigation
2. Click "API Keys"
3. Click "Create New" to generate a key

## Step 3: Start Calling

### 3.1 Connection Info

| Config                 | Value                        |
| ---------------------- | ---------------------------- |
| **API URL (Base URL)** | `https://api.gravitex.ai/v1` |
| **API Key**            | Your created key             |
| **Request Format**     | Fully OpenAI API compatible  |

### 3.2 Test Call

Quick test with curl:

```bash theme={null}
curl https://api.gravitex.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-5.4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```

### 3.3 Code Examples

<Tabs>
  <Tab title="Python">
    ```python theme={null}
    from openai import OpenAI

    client = OpenAI(
        api_key="YOUR_API_KEY",
        base_url="https://api.gravitex.ai/v1"
    )

    response = client.chat.completions.create(
        model="gpt-5.4",
        messages=[
            {"role": "user", "content": "Hello!"}
        ]
    )

    print(response.choices[0].message.content)
    ```
  </Tab>

  <Tab title="Node.js">
    ```javascript theme={null}
    import OpenAI from 'openai';

    const openai = new OpenAI({
      apiKey: 'YOUR_API_KEY',
      baseURL: 'https://api.gravitex.ai/v1'
    });

    const response = await openai.chat.completions.create({
      model: 'gpt-5.4',
      messages: [{ role: 'user', content: 'Hello!' }]
    });

    console.log(response.choices[0].message.content);
    ```
  </Tab>

  <Tab title="Java">
    ```java theme={null}
    OpenAiService service = new OpenAiService(
        "YOUR_API_KEY", 
        Duration.ofSeconds(60), 
        "https://api.gravitex.ai/v1"
    );

    ChatCompletionRequest request = ChatCompletionRequest.builder()
        .model("gpt-5.4")
        .messages(List.of(
            new ChatMessage(ChatMessageRole.USER, "Hello!")
        ))
        .build();

    ChatCompletionResult result = service.createChatCompletion(request);
    System.out.println(result.getChoices().get(0).getMessage().getContent());
    ```
  </Tab>
</Tabs>

## Next Steps

Congratulations! You've successfully set up GravitexAI. Next you can:

<Columns cols={2}>
  <Card title="View API Docs" icon="book" href="/en/api-reference/introduction">
    Learn about complete API specifications
  </Card>

  <Card title="Integrate with Apps" icon="puzzle-piece" href="/en/integrations/cursor">
    Integrate GravitexAI with various tools
  </Card>
</Columns>

## FAQ

<AccordionGroup>
  <Accordion title="How to switch models?">
    Just change the `model` parameter in your request:

    ```json theme={null}
    {
      "model": "gpt-5.4",
      "model": "claude-sonnet-4-6",
      "model": "gemini-3.1-pro-preview"
    }
    ```
  </Accordion>

  <Accordion title="Which programming languages are supported?">
    GravitexAI is OpenAI API compatible, supporting all OpenAI SDK languages:

    * Python
    * JavaScript/TypeScript
    * Java
    * C#/.NET
    * Go
    * Ruby
    * PHP
  </Accordion>

  <Accordion title="How to check balance?">
    Log in to the console to view:

    * Account balance
    * Usage history
    * Consumption statistics
  </Accordion>

  <Accordion title="How do I get an account?">
    GravitexAI does not offer public registration. All accounts are provisioned by our BD team. Once onboarded, you'll enjoy:

    * Dedicated one-on-one BD support
    * Customized model plans and quota allocation
    * Faster technical support and issue resolution

    To get started, please email [bd@gravitex.ai](mailto:bd@gravitex.ai) or call us at +86 136 0305 5233.
  </Accordion>

  <Accordion title="Having issues?">
    1. Check API documentation
    2. Review common errors
    3. Contact support: [bd@gravitex.ai](mailto:bd@gravitex.ai)
  </Accordion>
</AccordionGroup>

<Tip>
  Save your API key safely and regularly check usage logs in the console to optimize costs. Happy coding\~
</Tip>
