# GLM-4.7-Flash

> Free-tier flash model from Z.ai for basic tasks and experimentation.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `zhipu/glm-4.7-flash`
- Live status and providers as JSON, no key needed: https://api.ohmygpt.com/v1/models/zhipu/glm-4.7-flash
- Released: —
- Context: 128K tokens
- Max output: 4K tokens
- Input: text; output: text
- Human preference rating (LMArena text): 1351

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | Free–$0.077 | per 1M tokens |
| Output | Free–$0.44 | per 1M tokens |
| Cache read | Free | per 1M tokens |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:zhipu/glm-4.7-flash`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Zhipu AI (ChatGLM) | `chatglm:zhipu/glm-4.7-flash` | China | Free | Free | no |
| Amazon Bedrock | `bedrock:zhipu/glm-4.7-flash` | United States | $0.077 | $0.44 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `zhipu/glm-4.7-flash` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `zhipu/glm-4.7-flash` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `zhipu/glm-4.7-flash` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/zhipu/glm-4.7-flash:generateContent | `zhipu/glm-4.7-flash` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zhipu/glm-4.7-flash",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/zhipu/glm-4.7-flash
