AI on demand: MinerU: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
== Calling a model == | == Calling a model == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# Set your personal key | # Set your personal key | ||
| Line 15: | Line 11: | ||
-H "Content-Type: application/json" \ | -H "Content-Type: application/json" \ | ||
-d '{ | -d '{ | ||
"model":"'"$MODEL_ID"'", | "model": "'"$MODEL_ID"'", | ||
"messages":[ | "messages": [ | ||
{"role": "user", "content": "Describe an imaginary document."} | {"role": "user", "content": "Describe an imaginary document."} | ||
], | ], | ||
"max_tokens": 2000 | "max_tokens": 2000 | ||
} | }' | jq . | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 11:25, 30 March 2026
Calling a model
# Set your personal key
STONEY_KEY=sk-...
# Set the desired model
MODEL_ID=MinerU2.5-2509-1.2B
curl -s https://llm.stoney-cloud.com/v1/chat/completions \
-H "Authorization: Bearer $STONEY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "'"$MODEL_ID"'",
"messages": [
{"role": "user", "content": "Describe an imaginary document."}
],
"max_tokens": 2000
}' | jq .