Skip to main content
POST
/
ai
/
parse-pdf
Parse a PDF file into resume data
curl --request POST \
  --url http://localhost:3000/api/openapi/ai/parse-pdf \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "provider": "ollama",
  "model": "<string>",
  "apiKey": "<string>",
  "baseURL": "<string>",
  "file": {
    "name": "<string>",
    "data": "<string>"
  }
}
'
"<unknown>"

Authorizations

x-api-key
string
header
required

The API key to authenticate requests.

Body

application/json
provider
enum<string>
required
Available options:
ollama,
openai,
gemini,
anthropic,
vercel-ai-gateway
model
string
required
apiKey
string
required
baseURL
string
required
file
object
required

Response

The PDF was successfully parsed into structured resume data.

The response is of type any.