Pricing
- Input Tokens: $20 /M tokens
- Output Tokens: $20 /M tokens
Input Modalities
Try this model
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AIHUBMIX_API_KEY"],
base_url="https://shkq.org/v1",
)
response = client.chat.completions.create(
model="code-davinci-edit-001",
messages=[
{
"role": "user",
"content": "Hello, how are you?"
}
],
max_tokens=1024,
stream=False,
)
print(response.choices[0].message.content)Frequently asked questions
How much does Code Davinci Edit 001 cost?
How do I call Code Davinci Edit 001 via API?
Who created Code Davinci Edit 001?
More models from ChatGLM
See all ChatGLM models →GLM 5 is ChatGLM's flagship open-source foundation model, designed for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks.
GLM-4.5
GLM-4.5
Input pricing starts at $0.27/M tokens output pricing starts at $1.10/M tokens For detailed pricing, please refer to each provider.
GLM-4.6 is Zhipu’s latest flagship model (total parameters 355B, activation parameters 32B), comprehensively surpassing GLM-4.5. Its coding capability is aligned with Claude Sonnet 4, making it a top domestic coding model; the context window has been expanded from 128K to 200K, better suited for long code and agent tasks; inference capabilities have been significantly enhanced and support tool invocation during processing; improvements have been made in tool calling, search agents, writing style, role play, and multilingual translation. The model is named glm-4.6 and is provided by three vendors, with calls prioritized to the Sophnet platform.
算能提供
Z/glm-4.5
© 2023 - 2026 AIHubMix, LLC