Implement GPT-S within your application or content management system. .
Integrate GPT with One Line of Code
Provide input text and specify your DOM element to receive the content within the callback function.
<script src="https://astica.ai/javascript-sdk/2023-07-09/astica.api.js"></script> <script> asticaAPI_start('API KEY HERE'); //only needs to be called once. //Simple Usage: asticaGPT("Write a sentence about apples:") //With Token Limit: asticaGPT("Write a sentence about apples:", 25) //Advanced: var asticaGPT_params = { instruction:document.getElementById("astica_ML_temperature").value, temperature:document.getElementById("astica_ML_temperature").value, top_p:document.getElementById("astica_ML_top_p").value, think_pass:document.getElementById("astica_ML_think_pass").value, stop_sequence:document.getElementById("astica_ML_stop_sequence").value, stream_output: document.getElementById("astica_ML_stream_output").value } asticaGPT( document.getElementById("astica_ML_version").value, document.getElementById("astica_ML_gpt_input").value, document.getElementById("astica_ML_tokens_max").value, asticaGPT_params ); //default asticaGPT callback function asticaGPT_generateComplete(data){ console.log(data); if(typeof data.error != 'undefined') { alert(data.error); } $('#your_div').val(data.output) //optional text to speech with asticaVoice: asticaVoice(data.output); } //receive asticaGPT response stream real-time function asticaGPT_generatePreview(data){ console.log(data); if(typeof data.error != 'undefined') { alert(data.error); return; } $('#your_div').val(data.output) } ///////////////////////// //Plug and play example: ///////////////////////// function asticaGPT_example(string, tokens) { asticaGPT(string, tokens) } setTimeout(function() { asticaAPI_start('API KEY HERE'); //only needs to be called once. asticaGPT_example('Write a sentence about apples:', 55); //max 55 tokens }, 1000); </script>
Content Produced by Artifical Intelligence
GPT-S provides the ability to generate unique content created through the use of AI with performance exceeding text-davinci-003 (GPT-3). This is a significant improvement over previous astica models which rivaled only OpenAI Curie. You can access a powerful javascript API to integrate GPT-S into your applications for real-time interactivity. GPT-S is also available via REST API. Use the API to create grammatically correct, and human readable content that is unique and will pass copyscape plagerism checking. It can be used for any other NLP tasks. Use the sandbox to experiment with industry specific GPT prompts. Get your API Key
Ghost Writing Powered by GPT-S
GPT-S can generate a rough draft of your blog post or creative writing project. Artificial intelligence will analyse your input to determine context such as realism as well as informal methods of speech such as slang. Refine your input and parameters to quickly generate unique and highly relevant content around the intended topic.
Interact Using AI
The astica API provides the building blocks to combined real-time user input such as image and video to analyze and detect objects, faces and landmarks. Combine these with astica GPT-S to create unique responses and anecdotes relevant to the user submitted input. Try the Descriptive Vision API samples online to try it online.