Falcon-7B Instruct API

Falcon-7B Instruct powered scalable API for text generation

Access scalable, affordable and highly available REST API for on-demand instruction driven text generation using Falcon-7B Instruct AI Model.

Using this API you can perform instruction based text generation use-cases such as:

  • Copywriting

  • Summarisation

  • Code-writing

  • Classification

  • Sentiment analysis

Few benefits of using Falcon-7B Instruct Monster API:

✅ Optimised model for ultra fast and high throughput text generation

✅ Very low cost on-demand access

✅ Powerful alternative to GPT-3

Falcon-7B Instruct Monster API can be accessed via this workflow:

  1. Send request API: Use this API to send a request for text generation

  2. Fetch status API: Use this API to fetch status of your text generation request

Refer to our API docs for Falcon-7B Instruct API for more details.

# Example CURL Request for sending text generation request

curl --location 'https://api.monsterapi.ai/apis/add-task' \
--header 'x-api-key: 123' \
--header 'Authorization: Bearer 456' \
--data '{
    "model": "falcon-7b-instruct",
    "data": {
        "prompt": "Write an article on first man on Moon.",
        "top_k": 5,
        "top_p": 0.1
# Example CURL Request for getting status of your request

curl --location 'https://api.monsterapi.ai/apis/task-status' \
--header 'x-api-key: 123' \
--header 'Authorization: Bearer 456' \
--data '{
    "process_id" :  "ebb1e4e1-0e1c-11ee-a993-9d54e5d11eba"

These 2 API calls are enough to get an output for your instruction.

Description of parameters for sending SunoAI Bark API request:

  1. "prompt":

    1. Required Parameter.

    2. Prompt is a textual instruction for the model to produce an output.

  2. "top_k":

    1. Optional Parameter (Default: 10)

    2. Top-k sampling helps improve quality by removing the tail and making the generated output less likely to go off topic.

  3. "top_p":

    1. Optional Parameter (Default: 0.9. Allowed range: 0.0 to 1.0)

    2. Top-p sampling helps generate more diverse and creative text by considering a broader range of tokens.

Example outputs generated using Falcon-7B Instruct MonsterAPI:

Example 1:

"prompt": "Write a professional email copy for me addressed to my boss for taking a sick leave",
"top_k": 10,
"top_p": 0.9

Subject: Request for Medical Leave

Dear [Boss],

I am writing to request a medical leave of absence as I am currently experiencing some health issues that require my attention. I am confident that I will be able to catch up on work once I return, but I need this time to focus on my wellbeing.

I kindly request your understanding and support during this period. Please let me know how soon I can resume my duties once I'm feeling better.

Thank you in advance,
Your Name
[Your Title]
[Your Company Name]

Example 2:

"prompt": "Classify the sentiment of this sentence as Positive, Negative, Neutral: I am not happy with the way things have been turning out lately",
"top_k": 5,
"top_p": 0.9


Last updated