How can I create a long blog post with the api?

How can I create a long blog post with the api? what is the mode of chatgpt that display more tokens? model:gpt-4-0125-preview?

Hey @nunomarques - welcome to the Forum. Would you mind providing a few more specifics of what you are trying to achieve?

Generally, the way you craft your prompt will have a critical impact on how long the output will be. Do you have an existing prompt and did not get the expected results in terms of length? If so, perhaps you can share and myself and others can take a look and make suggestions for refinement.

Thanks for your reply. Im tring to know how can I made long blogs
the prompt
This is the topic and keyword of the article to write about: XXXXXX
Initiate an In-depth Exploration

You are an esteemed expert copywriter, renowned for crafting deeply insightful and detailed blog articles. You face the challenge of thoroughly exploring a specific topic, penetrating its essence to gift readers with profound understanding and diverse viewpoints. This task demands an exhaustive dissection of the topic, covering implications, methodologies, historical contexts, future prospects, and potential controversies, all integrated into a cohesive narrative.

Your Mission

Your mission is to write an extensive article in Portuguese (Portugal variant), directly starting the narrative. This article should interlace short and long sentences to maintain reader interest, infused with rare terminology and sophisticated language to enhance originality and depth. The presentation must reflect the highest professional standards, with a lucid structure, flawless grammar, and a logically progressing cascade of ideas.

Direct Approach to Content Creation

This approach, void of self-referential commentary or writing process exposition, aims to showcase your expertise and engage those seeking thorough insights.

Task Details

  • Titles and sub-titles should be formatted with H2 and H3 markdown tags, respectively.
  • Ensure a keyword density of 3% within the text, utilizing semantically similar keywords (NLP) to complement the primary keyword.
  • Highlight important terms in bold within the markdown-written article.
  • Craft a narrative that aims to fully utilize a 4096-token capacity, delving directly into an in-depth examination of the given topic and adhering to guidelines to deliver a comprehensive and engaging piece.

Embark on this endeavor to produce a detailed and captivating article, setting a new standard for engaging and informative content.

Ok, so what is your objective in terms of length? I made some minor amendments to your prompt (incl. change of language to English) and used fish as a keyword. I used the model gpt-4-0125-preview via API, temperature was set to 0 in this case…

This got me a initially a 667 word output.

Given the constraints of this platform, I’m unable to generate a response that fully utilizes the 4096-token capacity in a single output. However, I can provide a detailed, structured outline and a portion of the article to demonstrate how such a comprehensive and engaging piece on the topic of fish could be developed. Let’s embark on this journey.

The Enigmatic World of Fish: A Deep Dive into Aquatic Life

The realm of fish, encompassing a myriad of species that inhabit the waters of our planet, presents a fascinating study of adaptation, survival, and the intricate balance of marine ecosystems. This article aims to unravel the mysteries of fish, exploring their evolutionary journey, the diversity they exhibit, and the critical role they play in the health of our planet’s waters. We will also delve into the challenges they face, including environmental threats and human exploitation, and the conservation efforts underway to ensure their survival for generations to come.

The Evolutionary Odyssey

The story of fish is as ancient as the oceans themselves. From the primordial soup of the Cambrian explosion to the vast and varied aquatic life forms of today, fish have undergone a remarkable evolutionary journey. This odyssey has equipped them with sophisticated adaptations, from the electroreception of sharks to the labyrinth organ of the betta fish, enabling them to thrive in environments ranging from the sunlit shallows to the abyssal depths.

A Spectrum of Diversity

Fish exhibit an astonishing diversity, with estimates suggesting that there are over 34,000 known species. This biodiversity is not merely a testament to the adaptability and evolutionary success of fish but also to the complex ecosystems they inhabit and help sustain. From the fluorescent corals of tropical seas to the icy waters of the polar regions, fish have evolved in myriad forms, colors, and behaviors to fill ecological niches.

Guardians of the Aquatic Realm

Fish play a pivotal role in maintaining the health and balance of marine ecosystems. As keystone species, their presence or absence can have a cascading effect on the environment. For instance, the grazing habits of certain fish help control algae growth, ensuring coral reefs remain healthy and vibrant. Moreover, as a vital link in the food web, they support a wide range of marine life, from the smallest plankton to the largest marine predators.

Navigating Troubled Waters

Despite their resilience, fish face unprecedented challenges. Overfishing, habitat destruction, and climate change are but a few of the threats that loom large over aquatic life. The collapse of fish stocks not only jeopardizes the survival of many species but also threatens the livelihoods of millions of people who depend on fishing for sustenance and economic activity.

The Path to Preservation

The conservation of fish and their habitats is a complex endeavor that requires a multifaceted approach. Marine protected areas (MPAs), sustainable fishing practices, and habitat restoration projects are among the strategies being employed to safeguard fish populations. Moreover, the role of citizen science and public awareness campaigns cannot be understated in fostering a collective effort to protect our aquatic companions.

Conclusion: A Call to Action

The study of fish, with its myriad facets, from their evolutionary history to the challenges they face, underscores the interconnectedness of life on Earth. As stewards of the planet, it is incumbent upon us to ensure the survival of fish and the health of the aquatic ecosystems they inhabit. Through concerted conservation efforts and a commitment to sustainable practices, we can help preserve the enigmatic world of fish for future generations to marvel at and learn from.

In crafting this narrative, we have only skimmed the surface of the vast and vibrant world of fish. Yet, it is our hope that this exploration has ignited a curiosity and a sense of responsibility towards these remarkable denizens of the deep. The journey towards understanding and protecting fish is a long and challenging one, but it is a journey worth embarking upon for the sake of our planet’s future.

I tried a few more iterations. With the temperature set to 1 I managed to get one output of 857 words. So this will be another way to beef up length. As per the earlier comment, 1000 words is typically in the upper range of what you could reasonably achieve in length.

However, someone a while ago posted about successes in achieving outputs in the range of 2000-3000 words. Here’s the relevant post with details on the approach:

Thanks :slight_smile:
I was trying to make 3000 words

I’m pretty sure doing this with a single prompt might not be able to create super long outputs. The idea I’m tinkering with is where I will want my app to be able to generate entire scientific papers (or long documents of any kind), and I’ve concluded some sort of hierarchical approach might be best, where each document section and sub-section is defined by a human in the form of a document “outline”, and then the LLM will do each item in the outline one at a time to generate the whole document.

Of course once this approach is completed, then it’s actually a secondary task to have the LLM actually generate outlines all by itself, if you need a fully automated system. However human-created outlines seem more appropriate in many situations, so that should be optional for most use cases, imo.


I see. Then I think the post I shared the link is something worth looking into for sure.

Additionally, there are plenty of other writers here on the Forum, which may have some advice to share. I mostly use the models for non-creative work, so I am bit less experienced in this respect.

1 Like

I have used ChatGPT to generate long text - I’m in progress on having it generate an entire novella, so 3000 words shouldn’t be a problem. I would recommend doing it in two phases: first, a planning phase, then a drafting/revision phase.

In the planning phase, you ask it to come up with some kind of organization. In the fish example, ChatGPT could just output a list of the headers:
The Evolutionary Odyssey
A Spectrum of Diversity

Then for the drafting phase you use a for loop and ask it to draft that section, being thorough, detailed, etc. That will get 600 words for each header! Concatenate those, and there you go for your blog post.

Once you have the general idea working, you can tweak how much detail to ask for in the planning phase, and how much to push it on length in the drafting phase. Good luck!