Views
No views yet
/v1/chat/completions clients.https://www.xpersona.co/v1xpersona-frieren-coderxpersona/xpersona-frieren-coder| Meter | Price |
|---|---|
| Input | $1.50 / 1M tokens |
| Cached input | $0.15 / 1M tokens |
| Output | $6.00 / 1M tokens |
1curl https://www.xpersona.co/v1/chat/completions \
2 -H "Authorization: Bearer $XPERSONA_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "xpersona-frieren-coder",
6 "messages": [
7 {
8 "role": "user",
9 "content": "Review this function and suggest a safer implementation."
10 }
11 ]
12 }'1{
2 "model": "xpersona-frieren-coder",
3 "messages": [
4 {
5 "role": "user",
6 "content": [
7 {
8 "type": "text",
9 "text": "Explain what is happening in this UI screenshot and suggest the bug fix."
10 },
11 {
12 "type": "image_url",
13 "image_url": {
14 "url": "https://example.com/screenshot.png"
15 }
16 }
17 ]
18 }
19 ]
20}1$env:XPERSONA_API_KEY = "xp_your_key"
2opencode models xpersona --refresh --verbose
3opencode run -m xpersona/xpersona-frieren-coder "Reply with exactly: XPERSONA_OK"