Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Google game

  • No replies
  • 0 have this problem
more options

{

 "choices": [
   {
     "text": "Sure! Here's a search engine optimized article about...",
     "log_probs": null
   }
 ],
 "model": "palmyra-x-003-instruct"

}curl --location --request POST https://api.writer.com/v1/completions \

--header "Authorization: Bearer <token>" \
--header "Content-Type: application/json" \

--data-raw '{"model":"palmyra-x-003-instruct","prompt":"Write me an SEO article about...","max_tokens":150,"temperature":0.7,"top_p":0.9,"stop":["."],"best_of":1,"random_seed":42,"stream":false}'https://api.writer.com/v1/completionsimport Writer from 'writer-sdk';

const client = new Writer({

 apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted

});

async function main() {

 const completion = await client.completions.create({
   model: 'palmyra-x-003-instruct',
   prompt: 'Write me an SEO article about...',
 });
 console.log(completion.choices);

}

main();import os from writerai import Writer

client = Writer(

   # This is the default and can be omitted
   api_key=os.environ.get("WRITER_API_KEY"),

) completion = client.completions.create(

   model="palmyra-x-003-instruct",
   prompt="Write me an SEO article about...",

) print(completion.choices)

{ "choices": [ { "text": "Sure! Here's a search engine optimized article about...", "log_probs": null } ], "model": "palmyra-x-003-instruct" }curl --location --request POST https://api.writer.com/v1/completions \ --header "Authorization: Bearer <token>" \ --header "Content-Type: application/json" \ --data-raw '{"model":"palmyra-x-003-instruct","prompt":"Write me an SEO article about...","max_tokens":150,"temperature":0.7,"top_p":0.9,"stop":["."],"best_of":1,"random_seed":42,"stream":false}'https://api.writer.com/v1/completionsimport Writer from 'writer-sdk'; const client = new Writer({ apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted }); async function main() { const completion = await client.completions.create({ model: 'palmyra-x-003-instruct', prompt: 'Write me an SEO article about...', }); console.log(completion.choices); } main();import os from writerai import Writer client = Writer( # This is the default and can be omitted api_key=os.environ.get("WRITER_API_KEY"), ) completion = client.completions.create( model="palmyra-x-003-instruct", prompt="Write me an SEO article about...", ) print(completion.choices)
Attached screenshots