# Gemini 4 Argon

> Gemini 4 Argon API on PoYo. Google DeepMind's frontier reasoning model with 1M unified context & output for long-horizon coding, knowledge work, and cybersecurity at $1.60 input and $8.00 output per 1M tokens (20% off official).

## Overview

- Endpoint: `https://api.poyo.ai/v1beta/models/gemini-4-argon:generateContent`
- Page: https://poyo.ai/models/gemini-4-argon
- Model page ID: `gemini-4-argon`
- API model ID: `gemini-4-argon`
- Category: Chat
- Auth: `Authorization: Bearer $POYO_API_KEY`
- Create a key at https://poyo.ai/dashboard/api-key

This model uses a synchronous chat API. POST the JSON body below. There is no `task_id` and no status polling.

## Pricing

- Input: 320 credits ($1.60) per 1M tokens
- Output: 1600 credits ($8.00) per 1M tokens
- Cache Read: 32 credits ($0.160) per 1M tokens

For more details, see https://poyo.ai/models/gemini-4-argon.

## API Information

POST the JSON body below. Fields are top-level unless noted.

### Request body

- `contents` (`list`, required):
  Conversation contents with roles and parts. Each content object may include a `role` (`user` or `model`) and a `parts` array containing text or inline data.
  - Array of GeminiContent
- `generationConfig` (`object`, optional):
  Generation configuration, including temperature, topP, topK, maxOutputTokens, and stopSequences.
- `safetySettings` (`list`, optional):
  Safety settings.
  - Array of GeminiSafetySetting

Required Parameters Example:

```json
{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "Summarize the 'new night mode' requirements in 3 points and provide next steps."
        }
      ]
    }
  ]
}
```

Full Example:

```json
{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "Summarize the 'new night mode' requirements in 3 points and provide next steps."
        }
      ]
    }
  ]
}
```

### Output Schema

The response is returned from the same request. There is no separate status endpoint.

Example Response:

```json
{
  "candidates": [
    {
      "content": {
        "role": "model",
        "parts": [
          {
            "text": "Hello! I'm pleased to introduce myself."
          }
        ]
      },
      "finishReason": "STOP",
      "index": 0
    }
  ],
  "promptFeedback": {
    "safetyRatings": [
      {
        "category": "HARM_CATEGORY_HATE_SPEECH",
        "probability": "NEGLIGIBLE"
      },
      {
        "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
        "probability": "NEGLIGIBLE"
      },
      {
        "category": "HARM_CATEGORY_HARASSMENT",
        "probability": "NEGLIGIBLE"
      },
      {
        "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
        "probability": "NEGLIGIBLE"
      }
    ]
  },
  "usageMetadata": {
    "promptTokenCount": 15,
    "candidatesTokenCount": 29,
    "totalTokenCount": 44,
    "thoughtsTokenCount": 0,
    "promptTokensDetails": [
      {
        "modality": "TEXT",
        "tokenCount": 15
      }
    ]
  }
}
```

## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://api.poyo.ai/v1beta/models/gemini-4-argon:generateContent \
  --header "Authorization: Bearer $POYO_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"contents":[{"role":"user","parts":[{"text":"Summarize the 'new night mode' requirements in 3 points and provide next steps."}]}]}'
```

### Python

```python
import json
import os
import requests

headers = {
    "Authorization": f"Bearer {os.environ['POYO_API_KEY']}",
    "Content-Type": "application/json",
}
payload = json.loads("{\n  \"contents\": [\n    {\n      \"role\": \"user\",\n      \"parts\": [\n        {\n          \"text\": \"Summarize the 'new night mode' requirements in 3 points and provide next steps.\"\n        }\n      ]\n    }\n  ]\n}")

response = requests.post("https://api.poyo.ai/v1beta/models/gemini-4-argon:generateContent", headers=headers, json=payload)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const headers = {
  Authorization: `Bearer ${process.env.POYO_API_KEY}`,
  "Content-Type": "application/json",
};

const response = await fetch("https://api.poyo.ai/v1beta/models/gemini-4-argon:generateContent", {
  method: "POST",
  headers,
  body: JSON.stringify({
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "Summarize the 'new night mode' requirements in 3 points and provide next steps."
        }
      ]
    }
  ]
}),
});

console.log(await response.json());
```

## Additional Resources

### Documentation

- [Model Playground](https://poyo.ai/models/gemini-4-argon)
- [API Documentation](https://docs.poyo.ai/api-manual/chat-series/gemini-native-format)
- [API Documentation (Markdown)](https://docs.poyo.ai/api-manual/chat-series/gemini-native-format.md)

### Other agent-readable surfaces

- [Platform overview](https://poyo.ai/llms.txt)
- [Documentation index](https://docs.poyo.ai/llms.txt)
- [Full documentation text](https://docs.poyo.ai/llms-full.txt)
- Any other model: `https://poyo.ai/models/<model-id>/llms.txt`
