# Assume you have already uploaded the PDF and obtained FILE_ID
curl https://api.openai.com/v1/responses   -H "Authorization: Bearer $OPENAI_API_KEY"   -H "Content-Type: application/json"   -d '{
    "model": "gpt-5",
    "prompt": {
      "id": "pmpt_abc123",
      "variables": {
        "topic": "Dragons",
        "reference_pdf": {
          "type": "input_file",
          "file_id": "file-abc123"
        }
      }
    }
  }'
```

## Next steps

Now that you known the basics of text inputs and outputs, you might want to
check out one of these resources next.

[Build a prompt in the Playground](/chat/edit)  
[Generate JSON data with Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)  
[Full API reference](https://platform.openai.com/docs/api-reference/responses)