主机论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 128|回复: 6

x.ai有图像生成api了,之前白**的额度能用

[复制链接]

43

主题

671

回帖

1899

积分

金牌会员

Rank: 6Rank: 6

积分
1899
发表于 2025-3-21 20:34:36 | 显示全部楼层 |阅读模式
效果:


文档:
https://docs.x.ai/docs/guides/image-generations
回复

使用道具 举报

8

主题

1022

回帖

3170

积分

论坛元老

Rank: 8Rank: 8

积分
3170
发表于 2025-3-21 20:38:46 | 显示全部楼层
oneapi还没支持,有没哪位知道有同类软件能支持的?
回复

使用道具 举报

3

主题

3839

回帖

9021

积分

论坛元老

Rank: 8Rank: 8

积分
9021
发表于 2025-3-21 20:39:26 | 显示全部楼层
mjj头发没这么多
回复

使用道具 举报

43

主题

671

回帖

1899

积分

金牌会员

Rank: 6Rank: 6

积分
1899
 楼主| 发表于 2025-3-21 20:41:37 | 显示全部楼层
ceplavia 发表于 2025-3-21 20:38
oneapi还没支持,有没哪位知道有同类软件能支持的?

用openwebui,可以自己写pipe实现,我是写的pipe实现的
回复

使用道具 举报

8

主题

1022

回帖

3170

积分

论坛元老

Rank: 8Rank: 8

积分
3170
发表于 2025-3-21 20:38:00 | 显示全部楼层
ClearkSky 发表于 2025-3-21 20:41
用openwebui,可以自己写pipe实现,我是写的pipe实现的

等有空看看,现在偷懒同时用groq和grok是用oneapi捏一起再配合nextchat
回复

使用道具 举报

2

主题

312

回帖

1122

积分

金牌会员

Rank: 6Rank: 6

积分
1122
发表于 2025-3-21 21:00:18 | 显示全部楼层
为啥我连接是这种:
连接失败404"Themodelgrok-2-image-1212doesnote 3d5b545dc9c4 does not have access to it. Please ensure you're
using the correct APl key. If you believe this is a mistake, pplease contact support and quote your teamID and the model name.
回复

使用道具 举报

43

主题

671

回帖

1899

积分

金牌会员

Rank: 6Rank: 6

积分
1899
 楼主| 发表于 2025-3-21 20:41:00 | 显示全部楼层
king 发表于 2025-3-21 21:35
为啥我连接是这种:
连接失败404"Themodelgrok-2-image-1212doesnote 3d5b545dc9c4 does not have access t ...

你应该用的client.chat.completions.create

需要用client.images.generate
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|主机论坛

GMT+8, 2025-9-19 15:36 , Processed in 0.074143 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表