65 lines
1.8 KiB
Bash
65 lines
1.8 KiB
Bash
#!/bin/sh
|
|
|
|
# curl -v --location --request POST 'https://api.tu-zi.com/v1/chat/completions' \
|
|
# --header 'Content-Type: application/json' \
|
|
# --header 'Authorization: Bearer sk-...' \
|
|
# --data-raw '{
|
|
# "model": "gpt-4-gizmo-g-2fkFE8rbu",
|
|
# "messages": [
|
|
# {
|
|
# "role": "user",
|
|
# "content": "你是谁"
|
|
# }
|
|
# ],
|
|
# "stream": false
|
|
# }'
|
|
#
|
|
# echo
|
|
|
|
# curl -v --location --request POST 'https://animator-gg-api.ca2324.servep2p.com:8443/api/fal/proxy' \
|
|
# --header 'Content-Type: application/json' \
|
|
# --header 'x-fal-target-url: https://api.tu-zi.com/v1/chat/completions' \
|
|
# --data-raw '{
|
|
# "model": "gpt-4-gizmo-g-2fkFE8rbu",
|
|
# "messages": [
|
|
# {
|
|
# "role": "user",
|
|
# "content": "你是谁"
|
|
# }
|
|
# ],
|
|
# "stream": false
|
|
# }'
|
|
|
|
# echo
|
|
|
|
# curl --location --request POST 'https://api.tu-zi.com/v1/chat/completions' \
|
|
# --header 'Authorization: Bearer sk-...' \
|
|
# --header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
|
|
# --header 'Content-Type: application/json' \
|
|
# --header 'Accept: */*' \
|
|
# --header 'Host: api.tu-zi.com' \
|
|
# --header 'Connection: keep-alive' \
|
|
# --data-raw '{
|
|
# "stream": true,
|
|
# "model":"gpt-4o-image-vip",
|
|
# "messages": [
|
|
# {
|
|
# "content": "画个牛马,让马的脸上遮个布",
|
|
# "role": "user"
|
|
# }
|
|
# ]
|
|
# }'
|
|
|
|
curl -v --location --request POST 'https://animator-gg-api.ca2324.servep2p.com:8443/api/fal/proxy' \
|
|
--header 'Content-Type: application/json' \
|
|
--header 'x-fal-target-url: https://api.tu-zi.com/v1/chat/completions' \
|
|
--data-raw '{
|
|
"stream": true,
|
|
"model":"gpt-4o-image-vip",
|
|
"messages": [
|
|
{
|
|
"content": "画个牛马,让马的脸上遮个布",
|
|
"role": "user"
|
|
}
|
|
]
|
|
}' |